Documentation
¶
Index ¶
- type App
- type AppFields
- type Arg
- func (self *Arg) AsBool() (bool, error)
- func (self *Arg) AsBools() ([]bool, error)
- func (self *Arg) AsFloat() (float64, error)
- func (self *Arg) AsFloats() ([]float64, error)
- func (self *Arg) AsInt() (int64, error)
- func (self *Arg) AsInts() ([]int64, error)
- func (self *Arg) AsString() (string, error)
- func (self *Arg) AsStrings() ([]string, error)
- func (self *Arg) GetAlias() string
- func (self *Arg) GetChoices() []string
- func (self *Arg) GetDefault() string
- func (self *Arg) GetDescription() string
- func (self *Arg) GetKind() string
- func (self *Arg) GetMultiple() bool
- func (self *Arg) GetName() string
- func (self *Arg) GetRequired() bool
- func (self *Arg) GetSeparator() string
- func (self *Arg) Parse(input string)
- func (self *Arg) Store(values []string)
- func (self *Arg) Stored() []string
- func (self *Arg) Validate() error
- type ArgFields
- type Args
- func (self *Args) Add(arg IArg)
- func (self *Args) AsBool(identifier string) (bool, error)
- func (self *Args) AsBools(identifier string) ([]bool, error)
- func (self *Args) AsFloat(identifier string) (float64, error)
- func (self *Args) AsFloats(identifier string) ([]float64, error)
- func (self *Args) AsInt(identifier string) (int64, error)
- func (self *Args) AsInts(identifier string) ([]int64, error)
- func (self *Args) AsString(identifier string) (string, error)
- func (self *Args) AsStrings(identifier string) ([]string, error)
- func (self *Args) Parse(input []string) error
- type BoolArg
- type Cmd
- type CmdFields
- type Cmds
- type FloatArg
- type FuncCmdExec
- type FuncCmdExecWithArgs
- type IArg
- type IntArg
- type StringArg
- type Table
- type TableFields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Arg ¶
type Arg struct { ArgFields // contains filtered or unexported fields }
func (*Arg) GetChoices ¶
func (*Arg) GetDefault ¶
func (*Arg) GetDescription ¶
func (*Arg) GetMultiple ¶
func (*Arg) GetRequired ¶
func (*Arg) GetSeparator ¶
type CmdFields ¶
type CmdFields struct { Name string Alias string Description string Default bool Exec FuncCmdExec ExecWithArgs FuncCmdExecWithArgs }
type FuncCmdExec ¶
type FuncCmdExec func()
type FuncCmdExecWithArgs ¶ added in v0.2.0
type FuncCmdExecWithArgs func(args Args)
type IArg ¶
type IArg interface { GetKind() string GetName() string GetAlias() string GetDescription() string GetSeparator() string GetMultiple() bool GetRequired() bool GetDefault() string GetChoices() []string AsBool() (bool, error) AsBools() ([]bool, error) AsFloat() (float64, error) AsFloats() ([]float64, error) AsInt() (int64, error) AsInts() ([]int64, error) AsString() (string, error) AsStrings() ([]string, error) Validate() error Parse(string) Store([]string) Stored() []string }
func BoolArgNew ¶
func FloatArgNew ¶
func StringArgNew ¶
type Table ¶
type Table struct { TableFields // contains filtered or unexported fields }
type TableFields ¶
Click to show internal directories.
Click to hide internal directories.