Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFlagsNotSetError ¶
Types ¶
type Bool ¶
type Bool struct { Required bool Default bool Short string Usage string Target *bool // contains filtered or unexported fields }
func (*Bool) IsRequired ¶
type DelayedEmbedded ¶
type DelayedEmbedded struct { Required bool Short string Usage string Flags map[string]cli.Flags Delimiter string FlagChooser func() (*string, error) // contains filtered or unexported fields }
func (*DelayedEmbedded) AddToFlagSet ¶
func (f *DelayedEmbedded) AddToFlagSet(name string, flags *pflag.FlagSet)
func (*DelayedEmbedded) GetShort ¶
func (f *DelayedEmbedded) GetShort() string
func (*DelayedEmbedded) GetUsage ¶
func (f *DelayedEmbedded) GetUsage() string
func (*DelayedEmbedded) IsRequired ¶
func (f *DelayedEmbedded) IsRequired() bool
func (*DelayedEmbedded) Parse ¶
func (f *DelayedEmbedded) Parse() func() error
func (*DelayedEmbedded) Set ¶
func (f *DelayedEmbedded) Set() bool
type Embedded ¶
type Embedded struct { Required bool Short string Usage string Flags cli.Flags // contains filtered or unexported fields }
Embedded is a Flag that allows you to parse multiple values from the same flag. For example, if c is an embedded flag with two string flags, bar and buzz, you could say --c "bar=hello,buzz=world".
func (*Embedded) IsRequired ¶
type IPNet ¶
type IPNet struct { Name string Required bool Default net.IPNet Short string Usage string Target *net.IPNet // contains filtered or unexported fields }
func (*IPNet) IsRequired ¶
type Int ¶
type Int struct { Required bool Default int Short string Usage string Target *int // contains filtered or unexported fields }
func (*Int) IsRequired ¶
type Int32 ¶
type Int32 struct { Required bool Default int32 Short string Usage string Target *int32 // contains filtered or unexported fields }
func (*Int32) IsRequired ¶
type Path ¶
type Path struct { Required bool Default tree.Path Short string Usage string Target *tree.Path // contains filtered or unexported fields }
func (*Path) IsRequired ¶
type PathSubcomponent ¶
type PathSubcomponent struct { Required bool Default tree.PathSubcomponent Short string Usage string Target *tree.PathSubcomponent // contains filtered or unexported fields }
func (*PathSubcomponent) AddToFlagSet ¶
func (f *PathSubcomponent) AddToFlagSet(name string, flags *pflag.FlagSet)
func (*PathSubcomponent) GetShort ¶
func (f *PathSubcomponent) GetShort() string
func (*PathSubcomponent) GetUsage ¶
func (f *PathSubcomponent) GetUsage() string
func (*PathSubcomponent) IsRequired ¶
func (f *PathSubcomponent) IsRequired() bool
func (*PathSubcomponent) Parse ¶
func (f *PathSubcomponent) Parse() func() error
func (*PathSubcomponent) Set ¶
func (f *PathSubcomponent) Set() bool
type String ¶
type String struct { Required bool Default string Short string Usage string Target *string // contains filtered or unexported fields }
func (*String) IsRequired ¶
type StringArray ¶
type StringArray struct { Required bool Default string Short string Usage string Target *[]string // contains filtered or unexported fields }
func (*StringArray) AddToFlagSet ¶
func (f *StringArray) AddToFlagSet(name string, flags *pflag.FlagSet)
func (*StringArray) GetShort ¶
func (f *StringArray) GetShort() string
func (*StringArray) GetUsage ¶
func (f *StringArray) GetUsage() string
func (*StringArray) IsRequired ¶
func (f *StringArray) IsRequired() bool
func (*StringArray) Parse ¶
func (f *StringArray) Parse() func() error
func (*StringArray) Set ¶
func (f *StringArray) Set() bool
type StringSlice ¶
type StringSlice struct { Required bool Default []string Short string Usage string Target *[]string // contains filtered or unexported fields }
func (*StringSlice) AddToFlagSet ¶
func (f *StringSlice) AddToFlagSet(name string, flags *pflag.FlagSet)
func (*StringSlice) GetShort ¶
func (f *StringSlice) GetShort() string
func (*StringSlice) GetUsage ¶
func (f *StringSlice) GetUsage() string
func (*StringSlice) IsRequired ¶
func (f *StringSlice) IsRequired() bool
func (*StringSlice) Parse ¶
func (f *StringSlice) Parse() func() error
func (*StringSlice) Set ¶
func (f *StringSlice) Set() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.