Documentation ¶
Index ¶
- Variables
- func Add(name, description string, command Cmd) (cmd *cmdCont)
- func Error(format string, v ...interface{})
- func Help()
- func Parse(arg ...[]string)
- func Run(runFunc ...runFunc) (ok bool)
- func SetUnknownCommand(fn func(_ string))
- func ShowFlags(fg *flag.FlagSet)
- func ShowRequired(_ *flag.FlagSet, requiredFlags RequiredFlags)
- func Start(runFunc ...runFunc)
- type Cmd
- type RequiredFlags
- type Subcommand
- type Var
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func SetUnknownCommand ¶
func SetUnknownCommand(fn func(_ string))
func ShowRequired ¶
func ShowRequired(_ *flag.FlagSet, requiredFlags RequiredFlags)
Types ¶
type Cmd ¶
type Cmd interface { Flags(subcommand *Subcommand) Run(args []string) }
Cmd represents a subCommand
type Subcommand ¶
Click to show internal directories.
Click to hide internal directories.