Documentation
¶
Index ¶
- type Arg
- type ArgSet
- type Command
- type FlagSet
- func (flagSet *FlagSet) Bool(name string, defaultValue bool, usage string) *bool
- func (flagSet *FlagSet) GetBool(name string) (bool, error)
- func (flagSet *FlagSet) GetInt(name string) (int, error)
- func (flagSet *FlagSet) GetString(name string) string
- func (flagSet *FlagSet) Int(name string, defaultValue int, usage string) *int
- func (flagSet *FlagSet) String(name string, defaultValue string, usage string) *string
- func (flagSet *FlagSet) Value(name string) string
- type Help
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arg ¶
type Arg struct { Name string // name as it appears on command line // contains filtered or unexported fields }
type Command ¶
type Command struct { Name string ShortDescription string LongDescription string Example string Run func(cmd *Command, args []string) ([]interface{}, error) HelpType Help // contains filtered or unexported fields }
func (*Command) AddCommand ¶
Click to show internal directories.
Click to hide internal directories.