Documentation
¶
Overview ¶
Package flags defines common CLI flags used across commands.
Index ¶
- func AddApplicationFlag(cmd *cobra.Command, _type string)
- func AddAuthModeFlag(cmd *cobra.Command)
- func AddClientIDFlag(cmd *cobra.Command)
- func AddClientSecretFlag(cmd *cobra.Command)
- func AddCommandFlag(cmd *cobra.Command)
- func AddContextFlag(cmd *cobra.Command, _type string)
- func AddDataFlag(cmd *cobra.Command, _type string)
- func AddDataplaneFlag(cmd *cobra.Command, _type string)
- func AddDescriptionFlag(cmd *cobra.Command, _type string)
- func AddDesiredStateFlag(cmd *cobra.Command, _type string)
- func AddDryRunFlag(cmd *cobra.Command)
- func AddEndpointFlag(cmd *cobra.Command)
- func AddEnvironmentFlag(cmd *cobra.Command, _type string)
- func AddFilenameFlag(cmd *cobra.Command, _type string)
- func AddHomeDirFlag(cmd *cobra.Command)
- func AddIgnoreTokenCacheFlag(cmd *cobra.Command)
- func AddImageFlag(cmd *cobra.Command)
- func AddIngressHostFlag(cmd *cobra.Command)
- func AddInitializerFlag(cmd *cobra.Command)
- func AddJobIDFlag(cmd *cobra.Command)
- func AddLabelFlag(cmd *cobra.Command, _type string)
- func AddMethodFlag(cmd *cobra.Command)
- func AddNameFlag(cmd *cobra.Command, _type string)
- func AddNoListenFlag(cmd *cobra.Command)
- func AddNodepoolFlag(cmd *cobra.Command, _type string)
- func AddOrganizationFlag(cmd *cobra.Command)
- func AddOutputFlag(cmd *cobra.Command)
- func AddProfileFlag(cmd *cobra.Command)
- func AddQueryFlag(cmd *cobra.Command)
- func AddScheduleFlag(cmd *cobra.Command)
- func AddServiceFlag(cmd *cobra.Command, _type string)
- func AddSetFlag(cmd *cobra.Command)
- func AddSizeFlag(cmd *cobra.Command)
- func AddSnapshotFlag(cmd *cobra.Command)
- func AddSnapshotVolumeFlag(cmd *cobra.Command)
- func AddSortFlag(cmd *cobra.Command)
- func AddSpecFlag(cmd *cobra.Command, _type string)
- func AddStorageClassFlag(cmd *cobra.Command)
- func AddSubPathFlag(cmd *cobra.Command, _type string)
- func AddTenantFlag(cmd *cobra.Command)
- func AddUserIDFlag(cmd *cobra.Command)
- func AddValueFlag(cmd *cobra.Command)
- func AddVerboseFlag(cmd *cobra.Command)
- func AddVolumeFlag(cmd *cobra.Command, _type string)
- func BindToViper(cmd *cobra.Command, _ []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddApplicationFlag ¶
AddApplicationFlag adds an application flag for the provided resource type.
func AddAuthModeFlag ¶
AddAuthModeFlag adds the persistent auth mode flag to the command.
func AddClientIDFlag ¶
AddClientIDFlag adds the persistent client-id flag to the command.
func AddClientSecretFlag ¶
AddClientSecretFlag adds the persistent client-secret flag to the command.
func AddCommandFlag ¶
AddCommandFlag adds the command flag to the command.
func AddContextFlag ¶
AddContextFlag adds a context flag for the provided resource type.
func AddDataFlag ¶
AddDataFlag adds a data flag for the provided resource type.
func AddDataplaneFlag ¶
AddDataplaneFlag adds a dataplane flag for the provided resource type.
func AddDescriptionFlag ¶
AddDescriptionFlag adds a description flag for the provided resource type.
func AddDesiredStateFlag ¶
AddDesiredStateFlag adds a desired state flag for the provided resource type.
func AddDryRunFlag ¶
AddDryRunFlag adds the dry-run flag to the command.
func AddEndpointFlag ¶
AddEndpointFlag adds the persistent endpoint flag to the command.
func AddEnvironmentFlag ¶
AddEnvironmentFlag adds an environment flag for the provided resource type.
func AddFilenameFlag ¶
AddFilenameFlag adds a filename flag for the provided resource type.
func AddHomeDirFlag ¶
AddHomeDirFlag adds the home directory flag to the command.
func AddIgnoreTokenCacheFlag ¶
AddIgnoreTokenCacheFlag adds the ignore token cache flag to the command.
func AddImageFlag ¶
AddImageFlag adds the image flag to the command.
func AddIngressHostFlag ¶
AddIngressHostFlag adds the persistent ingress-host flag to the command.
func AddInitializerFlag ¶
AddInitializerFlag adds the initializer flag to the command.
func AddJobIDFlag ¶
AddJobIDFlag adds the job ID flag to the command.
func AddLabelFlag ¶
AddLabelFlag adds a label flag for the provided resource type.
func AddMethodFlag ¶
AddMethodFlag adds the HTTP method flag to the command.
func AddNameFlag ¶
AddNameFlag adds a name flag for the provided resource type.
func AddNoListenFlag ¶
AddNoListenFlag adds the persistent no-browser flag to the command.
func AddNodepoolFlag ¶
AddNodepoolFlag adds a nodepool flag for the provided resource type.
func AddOrganizationFlag ¶
AddOrganizationFlag adds the persistent ingress-host flag to the command.
func AddOutputFlag ¶
AddOutputFlag adds the output format flag to the command.
func AddProfileFlag ¶
AddProfileFlag adds the persistent profile flag to the command.
func AddQueryFlag ¶
AddQueryFlag adds the query flag to the command.
func AddScheduleFlag ¶
AddScheduleFlag adds the schedule flag to the command.
func AddServiceFlag ¶
AddServiceFlag adds a service flag for the provided resource type.
func AddSizeFlag ¶
AddSizeFlag adds the size flag to the command.
func AddSnapshotFlag ¶
AddSnapshotFlag adds the snapshot flag to the command.
func AddSnapshotVolumeFlag ¶
AddSnapshotVolumeFlag adds snapshot workspace and volume flags to the command.
func AddSortFlag ¶
AddSortFlag adds the sort expression flag to the command.
func AddSpecFlag ¶
AddSpecFlag adds a spec flag for the provided resource type.
func AddStorageClassFlag ¶
AddStorageClassFlag adds the storage class flag to the command.
func AddSubPathFlag ¶
AddSubPathFlag adds a subpath flag for the provided resource type.
func AddTenantFlag ¶
AddTenantFlag adds the tenant flag to the command.
func AddUserIDFlag ¶
AddUserIDFlag adds the user-id flag to the command.
func AddValueFlag ¶
AddValueFlag adds the value flag to the command.
func AddVerboseFlag ¶
AddVerboseFlag adds the persistent verbose flag to the command.
func AddVolumeFlag ¶
AddVolumeFlag adds workspace and volume flags for the provided resource type.
func BindToViper ¶
BindToViper binds all the flags to viper. This cannot be done when the flags are created because multiple commands have the same flags and viper maintains a flat list. This means that `viper.GetString("name")` will look in the last `--name` flag that was defined, not the name flag for the current command.
Types ¶
This section is empty.