Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface {
// The name of the command
Name() string
// A one-line description of this command
ShortHelp() string
// A multi-line description of this command.
//
// Its subcommands' ShortHelp message will also be printed.
LongHelp() string
// Execute executes with the remaining passed in arguments.
//
// Return false if the command can't execute which will display the
// command's LongHelp message
Execute([]string) bool
// Any sub commands this command is capable of
SubCommands() []Command
}
type Driver ¶
type Driver struct {
// This is exposed so commands creating flag.FlagSet can use the setting
// on the driver for consistency
ErrorHandling flag.ErrorHandling
// contains filtered or unexported fields
}
func New ¶
func New(errorHandling flag.ErrorHandling) *Driver
func NewWithEnv ¶
NewWithEnv inverts control of the outside world and enables testing
func (*Driver) ParseInput ¶
func (*Driver) RegisterRoot ¶
Click to show internal directories.
Click to hide internal directories.
