-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle invalid commands #1053
Handle invalid commands #1053
Conversation
pkg/execute/executor.go
Outdated
@@ -168,8 +170,9 @@ func (e *DefaultExecutor) Execute(ctx context.Context) interactive.CoreMessage { | |||
reportedCmd = fmt.Sprintf("%s {invalid feature}", reportedCmd) | |||
} | |||
e.reportCommand(ctx, "", reportedCmd, false, cmdCtx) | |||
msg := e.cmdsMapping.HelpMessageForVerb(cmdVerb) | |||
return respond(msg, cmdCtx) | |||
helmMsg := e.cmdsMapping.HelpMessageForVerb(cmdVerb) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you want helpMsg
, not helm
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
(cherry picked from commit 760e70d)
(cherry picked from commit 760e70d)
Description
Changes proposed in this pull request:
Examples
Testing
@Botkube ping test, @Botkube list non-arg
Related issue(s)
#974