Documentation ¶
Index ¶
Constants ¶
View Source
const ( HelpOptionName = "help" HelpOptionShortName = "h" )
View Source
const (
NoArguments = ""
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Context ¶
func (*Context) BoolOption ¶
func (*Context) StringOption ¶
func (*Context) Subcommand ¶
type HandlerFunc ¶
type HandlerFunc func(*Context)
type Option ¶
type Subcommand ¶
type Subcommand struct { Name string Description string PosArgsUsage string ValidOptions []string RequiredOptions []string Examples []Example Handler HandlerFunc }
func (*Subcommand) Requires ¶
func (s *Subcommand) Requires(option string) bool
Click to show internal directories.
Click to hide internal directories.