Documentation ¶
Index ¶
- type CmdFlags
- func (c CmdFlags) Bool(name string) bool
- func (c CmdFlags) CheckExclusive(args ...cli.Flag)
- func (c CmdFlags) Float64(name string) float64
- func (c CmdFlags) Int(name string) int
- func (c CmdFlags) Int64(name string) int64
- func (c CmdFlags) IsSet(name string) bool
- func (c CmdFlags) Set(name, value string)
- func (c CmdFlags) String(name string) string
- func (c CmdFlags) Uint(name string) uint
- func (c CmdFlags) Uint64(name string) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdFlags ¶
type CmdFlags map[string]flagInfo
func NewCmdFlags ¶
func NewCmdFlags(ctx *cli.Context, totalFlags []cli.Flag) CmdFlags
func (CmdFlags) CheckExclusive ¶
func (c CmdFlags) CheckExclusive(args ...cli.Flag)
checkExclusive verifies that only a single instance of the provided flags was set by the user.
Click to show internal directories.
Click to hide internal directories.