Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHelpful = errors.New("user needs help") ErrNoArgs = errors.New("no arguments found") )
Functions ¶
func PrintUsage ¶
func PrintUsage()
Types ¶
type ArgNotFoundError ¶
type ArgNotFoundError string
func (ArgNotFoundError) Error ¶
func (e ArgNotFoundError) Error() string
type Command ¶
type Command interface { Setup() 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.