MCPcopy Create free account
hub / github.com/diillson/chatcli / NewCommandHandler

Function NewCommandHandler

cli/command_handler.go:58–62  ·  view source on GitHub ↗
(cli *ChatCLI)

Source from the content-addressed store, hash-verified

56}
57
58func NewCommandHandler(cli *ChatCLI) *CommandHandler {
59 ch := &CommandHandler{cli: cli}
60 ch.buildRoutes()
61 return ch
62}
63
64// HandleCommand dispatches a slash command. Returns true to exit the REPL.
65func (ch *CommandHandler) HandleCommand(ctx context.Context, userInput string) bool {

Callers 3

NewChatCLIFunction · 0.85
TestHandleVersionCommandFunction · 0.85

Calls 1

buildRoutesMethod · 0.95

Tested by 2

TestHandleVersionCommandFunction · 0.68