Allow commands to be hidden from help and autocomplete

This commit is contained in:
Peter Smit
2015-02-06 10:46:32 +02:00
parent 6086d7927e
commit 5308b4cd0f
2 changed files with 7 additions and 2 deletions

View File

@@ -31,6 +31,8 @@ type Command struct {
SkipFlagParsing bool
// Boolean to hide built-in help command
HideHelp bool
// Boolean to hide this command from help or completion
Hidden bool
}
// Invokes the command given the context, parses ctx.Args() to generate command-specific flags