(cli *ChatCLI)
| 56 | } |
| 57 | |
| 58 | func 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. |
| 65 | func (ch *CommandHandler) HandleCommand(ctx context.Context, userInput string) bool { |