Documentation ¶
Index ¶
- Constants
- func AddClusterDefinitionFlag(f cmdutil.Factory, cmd *cobra.Command, p *string)
- func AddComponentFlag(f cmdutil.Factory, cmd *cobra.Command, p *string, usage string)
- func AddComponentsFlag(f cmdutil.Factory, cmd *cobra.Command, p *[]string, usage string)
- func BuildFlagsBySchema(cmd *cobra.Command, schema *spec.Schema) error
Constants ¶
View Source
const ( CobraInt = "int" CobraSting = "string" CobraBool = "bool" CobraFloat64 = "float64" CobraStringArray = "stringArray" CobraIntSlice = "intSlice" CobraFloat64Slice = "float64Slice" CobraBoolSlice = "boolSlice" )
Variables ¶
This section is empty.
Functions ¶
func AddClusterDefinitionFlag ¶
AddClusterDefinitionFlag adds a flag "cluster-definition" for the cmd and stores the value of the flag in string p
func AddComponentFlag ¶
AddComponentFlag add flag "component" for cobra.Command and support auto complete for it
func AddComponentsFlag ¶
AddComponentsFlag add flag "components" for cobra.Command and support auto complete for it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.