flags

package
v0.6.0-beta.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddClusterDefinitionFlag

func AddClusterDefinitionFlag(f cmdutil.Factory, cmd *cobra.Command, p *string)

AddClusterDefinitionFlag adds a flag "cluster-definition" for the cmd and stores the value of the flag in string p

func AddComponentsFlag

func AddComponentsFlag(f cmdutil.Factory, cmd *cobra.Command, isPlural bool, p any, usage string)

func BuildFlagsBySchema

func BuildFlagsBySchema(cmd *cobra.Command, f cmdutil.Factory, schema *spec.Schema) error

BuildFlagsBySchema builds a flag.FlagSet by the given schema, convert the schema key to flag name, and convert the schema type to flag type.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL