allow update command to be disabled

This commit is contained in:
David Dollar
2014-09-18 12:40:56 -04:00
parent 57dca4ca12
commit ec1d07333c
2 changed files with 14 additions and 6 deletions
+4 -3
View File
@@ -14,9 +14,10 @@ type Command struct {
Run func(cmd *Command, args []string)
Flag flag.FlagSet
Usage string // first word is the command name
Short string // `forego help` output
Long string // `forego help cmd` output
Disabled bool
Usage string // first word is the command name
Short string // `forego help` output
Long string // `forego help cmd` output
}
func (c *Command) printUsage() {