Documentation
¶
Index ¶
- type Binder
- func (b *Binder) BindInt(flagSet *pflag.FlagSet, arg *IntArgument)
- func (b *Binder) BindString(flagSet *pflag.FlagSet, arg *StringArgument)
- func (b *Binder) GetInt(cmd *cobra.Command, arg *IntArgument) (*int, error)
- func (b *Binder) GetRequiredInt(cmd *cobra.Command, arg *IntArgument) (int, error)
- func (b *Binder) GetRequiredString(cmd *cobra.Command, arg *StringArgument) (string, error)
- func (b *Binder) GetString(cmd *cobra.Command, arg *StringArgument) string
- type IntArgument
- type IntValue
- type StringArgument
- type StringValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binder ¶
func (*Binder) BindString ¶
func (b *Binder) BindString(flagSet *pflag.FlagSet, arg *StringArgument)
func (*Binder) GetRequiredInt ¶
func (*Binder) GetRequiredString ¶
type IntArgument ¶
type StringArgument ¶
type StringValue ¶
type StringValue string
func NewStringValue ¶
func NewStringValue(val string) *StringValue
func (*StringValue) Set ¶
func (s *StringValue) Set(val string) error
func (*StringValue) String ¶
func (s *StringValue) String() string
func (*StringValue) Type ¶
func (s *StringValue) Type() string
Click to show internal directories.
Click to hide internal directories.