We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 501b8a4 commit 0c23a71Copy full SHA for 0c23a71
cli.go
@@ -65,6 +65,9 @@ type Command struct {
65
// Flag is a set of flags specific to this command.
66
Flag flag.FlagSet
67
68
+ // Hidden is a flat to hide command from global help commands listing
69
+ Hidden bool
70
+
71
// API is the interface used to communicate with Scaleway's API
72
API *ScalewayAPI
73
}
help.go
@@ -39,8 +39,8 @@ Options:
39
-v, --version=false Print version information and quit
40
41
Commands:
42
-{{range .}} {{.Name | printf "%-9s"}} {{.Description}}
43
-{{end}}
+{{range .}}{{if not .Hidden}} {{.Name | printf "%-9s"}} {{.Description}}
+{{end}}{{end}}
44
Run 'scw COMMAND --help' for more information on a command.
45
`
46
0 commit comments