Skip to content

Commit 3023c2e

Browse files
authored
chore: add support for grouping inference in ai commands (scaleway#4919)
1 parent 4e775f5 commit 3023c2e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmd/scw/testdata/test-main-usage-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
USAGE:
44
scw <command>
55

6-
AVAILABLE COMMANDS:
6+
AI COMMANDS:
77
inference This API allows you to handle your Managed Inference services
88

99
BAREMETAL COMMANDS:

internal/namespaces/inference/v1/custom.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ import "github.com/scaleway/scaleway-cli/v2/core"
55
func GetCommands() *core.Commands {
66
cmds := GetGeneratedCommands()
77

8+
cmds.MustFind("inference").Groups = []string{"ai"}
9+
810
return cmds
911
}

0 commit comments

Comments
 (0)