Documentation ¶
Index ¶
- Variables
- type Flag
- func BoolVarP(label string, shortLabel string, defaultValue bool, description string) Flag
- func NewStringVar(label string, defaultValue string, description string) Flag
- func NewStringVarP(label string, shortLabel string, defaultValue string, description string) Flag
- func NewUint64VarP(label string, shortLabel string, defaultValue uint64, description string) Flag
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WithArgumentsFlag = NewStringVar("with-arguments", "", config.TranslateInLang(_flagWithArgumentsUsage, config.UILanguage)) )
vars
Functions ¶
This section is empty.
Types ¶
type Flag ¶
type Flag interface { Label() string RegisterCommand(*cobra.Command) Value() interface{} MarkFlagRequired(*cobra.Command) }
Flag defines a cobra command flag
func NewStringVar ¶ added in v1.0.0
NewStringVar creates a new stringVar flag
Click to show internal directories.
Click to hide internal directories.