Documentation ¶
Index ¶
- type Command
- type FlagSet
- func (f *FlagSet) BoolVar(p *bool, name string)
- func (f *FlagSet) BoolVarP(p *bool, name, shorthand string)
- func (f *FlagSet) BoolVarPWithDefaultValue(p *bool, name, shorthand string, value bool)
- func (f *FlagSet) BoolVarWithDefaultValue(p *bool, name string, value bool)
- func (f *FlagSet) IntVar(p *int, name string)
- func (f *FlagSet) IntVarP(p *int, name, shorthand string)
- func (f *FlagSet) IntVarPWithDefaultValue(p *int, name string, shorthand string, value int)
- func (f *FlagSet) IntVarWithDefaultValue(p *int, name string, value int)
- func (f *FlagSet) StringSliceVar(p *[]string, name string)
- func (f *FlagSet) StringSliceVarP(p *[]string, name, shorthand string)
- func (f *FlagSet) StringSliceVarPWithDefaultValue(p *[]string, name, shorthand string, value []string)
- func (f *FlagSet) StringSliceVarWithDefaultValue(p *[]string, name string, value []string)
- func (f *FlagSet) StringVar(p *string, name string)
- func (f *FlagSet) StringVarP(p *string, name, shorthand string)
- func (f *FlagSet) StringVarPWithDefaultValue(p *string, name, shorthand string, value string)
- func (f *FlagSet) StringVarWithDefaultValue(p *string, name string, value string)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlagSet ¶
func (*FlagSet) BoolVarPWithDefaultValue ¶
func (*FlagSet) BoolVarWithDefaultValue ¶
func (*FlagSet) IntVarPWithDefaultValue ¶
func (*FlagSet) IntVarWithDefaultValue ¶
func (*FlagSet) StringSliceVar ¶
func (*FlagSet) StringSliceVarP ¶
func (*FlagSet) StringSliceVarPWithDefaultValue ¶
func (*FlagSet) StringSliceVarWithDefaultValue ¶
func (*FlagSet) StringVarP ¶
func (*FlagSet) StringVarPWithDefaultValue ¶
type Option ¶
func WithArgs ¶
func WithArgs(arg cobra.PositionalArgs) Option
func WithHidden ¶
func WithHidden() Option
Click to show internal directories.
Click to hide internal directories.