Skip to content

Commit

Permalink
Adding /setup to autocomplete (GitHub issue mattermost#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobf committed Dec 14, 2022
1 parent 4089ca1 commit 1d58b4a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions server/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ func addSubCommands(jira *model.AutocompleteData, optInstance bool) {
// Admin commands
jira.AddCommand(createSubscribeCommand(optInstance))
jira.AddCommand(createWebhookCommand(optInstance))
jira.AddCommand(createSetupCommand(optInstance))

// Help and info
jira.AddCommand(model.NewAutocompleteData("setup", "", "Start Jira plugin setup assistant"))
jira.AddCommand(model.NewAutocompleteData("info", "", "Display information about the current user and the Jira plug-in"))
jira.AddCommand(model.NewAutocompleteData("help", "", "Display help for `/jira` command"))
}
Expand Down Expand Up @@ -321,12 +321,6 @@ func createWebhookCommand(optInstance bool) *model.AutocompleteData {
return webhook
}

func createSetupCommand(optInstance bool) *model.AutocompleteData {
setup := model.NewAutocompleteData(
"Setup", "", "Start Jira Plugin setup assistant")
return setup
}

type CommandHandlerFunc func(p *Plugin, c *plugin.Context, header *model.CommandArgs, args ...string) *model.CommandResponse

type CommandHandler struct {
Expand Down

0 comments on commit 1d58b4a

Please sign in to comment.