Skip to content

Commit 47188b4

Browse files
committed
Improve the command categories
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent 3209cc5 commit 47188b4

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

cmd/root/board.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Projects and column prompts are stored in the global config file
2424
(~/.config/cagent/config.yaml) and can be managed from the TUI.`,
2525
Example: ` docker-agent board`,
2626
Args: cobra.NoArgs,
27-
GroupID: "core",
27+
GroupID: "advanced",
2828
SilenceUsage: true,
2929
RunE: func(cmd *cobra.Command, _ []string) error {
3030
telemetry.TrackCommand(cmd.Context(), "board", nil)

cmd/root/doctor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Exits with a non-zero status when an issue would prevent an agent from running.`
112112
docker-agent doctor ./agent.yaml
113113
docker-agent doctor --json`,
114114
Args: cobra.MaximumNArgs(1),
115-
GroupID: "core",
115+
GroupID: "diagnose",
116116
SilenceUsage: true,
117117
ValidArgsFunction: func(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
118118
if len(args) == 0 {

cmd/root/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func newModelsCmd(opts ...modelsCmdOption) *cobra.Command {
7070
Shows models that can be passed to 'docker agent run --model' or
7171
'docker agent new --model'. By default shows models from providers
7272
you have credentials for. Use --all to include all providers.`,
73-
GroupID: "core",
73+
GroupID: "diagnose",
7474
}
7575

7676
listCmd := newModelsListCmd(opts...)

cmd/root/new.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Optionally provide a description as an argument to skip the initial prompt.`,
4242
Example: ` docker-agent new
4343
docker-agent new "a web scraper that extracts product prices"
4444
docker-agent new --model openai/gpt-4o "a code reviewer agent"`,
45-
GroupID: "core",
45+
GroupID: "advanced",
4646
RunE: flags.runNewCommand,
4747
}
4848

cmd/root/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ We collect anonymous usage data to help improve docker agent. To disable:
167167
// Define groups
168168
cmd.AddGroup(
169169
&cobra.Group{ID: "core", Title: "Core Commands:"},
170+
&cobra.Group{ID: "diagnose", Title: "Diagnose Commands:"},
170171
&cobra.Group{ID: "advanced", Title: "Advanced Commands:"},
171172
)
172173

0 commit comments

Comments
 (0)