Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Cmd = &cobra.Command{ Use: "noop", Short: "Does nothing", FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true}, RunE: Run, } Args = Arguments{ Str: "Default String", StrPtr: &strVal, Int: 20, IntPtr: &intVal, Bool: false, BoolPtr: &boolVal, } )
Functions ¶
Types ¶
type Arguments ¶
type Arguments struct { Str string `flag:"str,s" desc:"string" json:"string"` StrPtr *string `flag:"strptr,p" desc:"*string" json:"*string"` Int int `flag:"int" desc:"int" json:"int"` IntPtr *int `flag:"intptr" desc:"*int" json:"*int"` Bool bool `flag:"bool,b" desc:"bool" json:"bool"` BoolPtr *bool `flag:"boolptr" desc:"*bool" json:"*bool"` }
Click to show internal directories.
Click to hide internal directories.