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.
2 parents 1ce6a05 + 12bf164 commit 234ef2cCopy full SHA for 234ef2c
internal/base/base.go
@@ -20,6 +20,7 @@ type Command struct {
20
UsageLine string
21
Short string
22
Long string
23
+ Hidden bool
24
}
25
26
func (c *Command) Name() string {
@@ -48,7 +49,9 @@ func Usage() {
48
49
fmt.Printf("\t%s <command> [arguments]\n", CmdName)
50
fmt.Println("The commands are:")
51
for _, cmd := range Commands {
- fmt.Printf("\t%-11s \t%s\n", cmd.Name(), cmd.Short)
52
+ if !cmd.Hidden {
53
+ fmt.Printf("\t%-11s \t%s\n", cmd.Name(), cmd.Short)
54
+ }
55
56
fmt.Printf("\nUse \"%s help <command>\" for more information about a command.", CmdName)
57
fmt.Println()
0 commit comments