Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolFlag ¶
type BoolFlag struct { CommandFlag Option *bool }
func (*BoolFlag) AddFlagToCommand ¶
Boolean flag methods
type CommandFlag ¶
type DurationFlag ¶
type DurationFlag struct { CommandFlag Option *time.Duration }
func (*DurationFlag) AddFlagToCommand ¶
func (f *DurationFlag) AddFlagToCommand(cmd *cobra.Command)
Duration flag methods
func (*DurationFlag) ValidateFlag ¶
func (f *DurationFlag) ValidateFlag(cmd *cobra.Command, args []string) error
type IntFlag ¶
type IntFlag struct { CommandFlag Option *int }
func (*IntFlag) AddFlagToCommand ¶
Int flag methods
type OutputFlag ¶
func NewOutputFlag ¶
func NewOutputFlag(o *printer.Output) *OutputFlag
func (*OutputFlag) Set ¶
func (o *OutputFlag) Set(outputType string) error
func (*OutputFlag) String ¶
func (o *OutputFlag) String() string
func (*OutputFlag) Type ¶
func (o *OutputFlag) Type() string
type StringFlag ¶
type StringFlag struct { CommandFlag Choices []string Option *string }
func (*StringFlag) AddFlagToCommand ¶
func (f *StringFlag) AddFlagToCommand(cmd *cobra.Command)
String flag methods
func (*StringFlag) ValidateFlag ¶
func (f *StringFlag) ValidateFlag(cmd *cobra.Command, args []string) error
type StringSliceFlag ¶
type StringSliceFlag struct { CommandFlag Choices []string Option *[]string }
func (*StringSliceFlag) AddFlagToCommand ¶
func (f *StringSliceFlag) AddFlagToCommand(cmd *cobra.Command)
StringSlice flag methods
func (*StringSliceFlag) ValidateFlag ¶
func (f *StringSliceFlag) ValidateFlag(cmd *cobra.Command, args []string) error
Click to show internal directories.
Click to hide internal directories.