Documentation ¶
Index ¶
- type Argument
- type ArgumentCompletionFunc
- type BoolOption
- func (o *BoolOption) GetCompletionHandler() OptionCompletionFunc
- func (o *BoolOption) GetHelp() string
- func (o *BoolOption) GetMetavar() string
- func (o *BoolOption) GetName() byte
- func (o *BoolOption) GetValue() bool
- func (o *BoolOption) IsFlag() bool
- func (o *BoolOption) IsSet() bool
- func (o *BoolOption) SetDefault()
- func (o *BoolOption) SetValue(v string) error
- type Cli
- type Option
- type OptionCompletionFunc
- type StringOption
- func (o *StringOption) GetCompletionHandler() OptionCompletionFunc
- func (o *StringOption) GetHelp() string
- func (o *StringOption) GetMetavar() string
- func (o *StringOption) GetName() byte
- func (o *StringOption) GetValue() string
- func (o *StringOption) IsFlag() bool
- func (o *StringOption) IsSet() bool
- func (o *StringOption) SetDefault()
- func (o *StringOption) SetValue(v string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument struct { Name string Help string Required bool Remaining bool CompletionHandler ArgumentCompletionFunc // contains filtered or unexported fields }
type ArgumentCompletionFunc ¶
type BoolOption ¶
type BoolOption struct { Name byte Default bool Help string // contains filtered or unexported fields }
func (*BoolOption) GetCompletionHandler ¶
func (o *BoolOption) GetCompletionHandler() OptionCompletionFunc
func (*BoolOption) GetHelp ¶
func (o *BoolOption) GetHelp() string
func (*BoolOption) GetMetavar ¶
func (o *BoolOption) GetMetavar() string
func (*BoolOption) GetName ¶
func (o *BoolOption) GetName() byte
func (*BoolOption) GetValue ¶
func (o *BoolOption) GetValue() bool
func (*BoolOption) IsFlag ¶
func (o *BoolOption) IsFlag() bool
func (*BoolOption) IsSet ¶
func (o *BoolOption) IsSet() bool
func (*BoolOption) SetDefault ¶
func (o *BoolOption) SetDefault()
func (*BoolOption) SetValue ¶
func (o *BoolOption) SetValue(v string) error
type Cli ¶
type OptionCompletionFunc ¶
type StringOption ¶
type StringOption struct { Name byte Default string Help string Metavar string CompletionHandler OptionCompletionFunc // contains filtered or unexported fields }
func (*StringOption) GetCompletionHandler ¶
func (o *StringOption) GetCompletionHandler() OptionCompletionFunc
func (*StringOption) GetHelp ¶
func (o *StringOption) GetHelp() string
func (*StringOption) GetMetavar ¶
func (o *StringOption) GetMetavar() string
func (*StringOption) GetName ¶
func (o *StringOption) GetName() byte
func (*StringOption) GetValue ¶
func (o *StringOption) GetValue() string
func (*StringOption) IsFlag ¶
func (o *StringOption) IsFlag() bool
func (*StringOption) IsSet ¶
func (o *StringOption) IsSet() bool
func (*StringOption) SetDefault ¶
func (o *StringOption) SetDefault()
func (*StringOption) SetValue ¶
func (o *StringOption) SetValue(v string) error
Click to show internal directories.
Click to hide internal directories.