Skip to content

Commit f09b968

Browse files
authored
chore(copilot): Remove separate 'addons' group from help menu (#1046)
This command removes the orphaned "Addons" group from the `copilot -h` help menu. <!-- Provide summary of changes --> <!-- Issue number, if available. E.g. "Fixes #31", "Addresses #42, 77" --> By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent ca616f6 commit f09b968

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/copilot/template/template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
)
1313

1414
// RootUsage is the text template for the root command.
15-
var RootUsage = fmt.Sprintf("{{h1 \"Commands\"}}{{ $cmds := .Commands }}{{$groups := mkSlice \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" }}{{range $group := $groups }} \n",
16-
group.GettingStarted, group.Develop, group.Release, group.Addons, group.Settings) +
15+
var RootUsage = fmt.Sprintf("{{h1 \"Commands\"}}{{ $cmds := .Commands }}{{$groups := mkSlice \"%s\" \"%s\" \"%s\" \"%s\" }}{{range $group := $groups }} \n",
16+
group.GettingStarted, group.Develop, group.Release, group.Settings) +
1717
` {{h2 $group}}{{$groupCmds := (filterCmdsByGroup $cmds $group)}}
1818
{{- range $j, $cmd := $groupCmds}}{{$lines := split $cmd.Short "\n"}}
1919
{{- range $i, $line := $lines}}

0 commit comments

Comments
 (0)