Documentation ¶
Index ¶
- type Bool
- type BoolGenerator
- type Count
- type CountGenerator
- type Duration
- type DurationGenerator
- type Group
- type String
- func (option *String) AddFlag(name string, usage string, flagTypes ...util.BoolFlagType) *pflag.Flag
- func (option *String) AddFlagShort(name string, short string, usage string) *pflag.Flag
- func (option *String) AddFlagWithExtraHelp(name string, usage string, help string, flagTypes ...util.BoolFlagType) *pflag.Flag
- func (option *String) GetFlag(name string, flagTypes ...util.BoolFlagType) *pflag.Flag
- func (option *String) GetRequiredFlag(name string) *pflag.Flag
- func (option *String) ValueOr(generator StringGenerator) string
- func (option *String) Var() *Value
- type StringGenerator
- type Validator
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
String
}
func NewBoolOption ¶
func (*Bool) AddFlagShort ¶
func (*Bool) ValueOr ¶
func (option *Bool) ValueOr(generator BoolGenerator) string
type BoolGenerator ¶
type Count ¶
type Count struct {
String
}
func NewCountOption ¶
func (*Count) AddFlagShort ¶
func (*Count) ValueOr ¶
func (option *Count) ValueOr(generator CountGenerator) string
type CountGenerator ¶
type Duration ¶
type Duration struct {
String
}
func NewDurationOption ¶
func (*Duration) ValueOr ¶
func (option *Duration) ValueOr(generator DurationGenerator) string
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) GetMainFlag ¶
type String ¶
type String struct { Group // contains filtered or unexported fields }
func NewStringOption ¶
func NewStringValueOption ¶
func (*String) AddFlagShort ¶
func (*String) AddFlagWithExtraHelp ¶ added in v0.14.1
func (*String) GetRequiredFlag ¶ added in v0.14.1
func (*String) ValueOr ¶
func (option *String) ValueOr(generator StringGenerator) string
@review needs an error variant
type StringGenerator ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.