Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoArgs = errors.New("no arguments found")
Functions ¶
Types ¶
type ArgNotFoundError ¶
type ArgNotFoundError string
func (ArgNotFoundError) Error ¶
func (e ArgNotFoundError) Error() string
type Command ¶
type Command interface { Setup(context.Context) error // Run and block until context cancel Run(context.Context) error // Help by printing a usage string. Currently not used anywhere. Help() string // Describe the command shortly Describe() string // Flagset which defines the flags for the command Flagset() *flag.FlagSet }
type UsagePrinter ¶
type UsagePrinter func()
Click to show internal directories.
Click to hide internal directories.