flags

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package flags defines common CLI flags used across commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddApplicationFlag

func AddApplicationFlag(
	cmd *cobra.Command,
	_type string,
)

AddApplicationFlag adds an application flag for the provided resource type.

func AddAuthModeFlag

func AddAuthModeFlag(cmd *cobra.Command)

AddAuthModeFlag adds the persistent auth mode flag to the command.

func AddClientIDFlag

func AddClientIDFlag(cmd *cobra.Command)

AddClientIDFlag adds the persistent client-id flag to the command.

func AddClientSecretFlag

func AddClientSecretFlag(cmd *cobra.Command)

AddClientSecretFlag adds the persistent client-secret flag to the command.

func AddCommandFlag

func AddCommandFlag(cmd *cobra.Command)

AddCommandFlag adds the command flag to the command.

func AddContextFlag

func AddContextFlag(
	cmd *cobra.Command,
	_type string,
)

AddContextFlag adds a context flag for the provided resource type.

func AddDataFlag

func AddDataFlag(
	cmd *cobra.Command,
	_type string,
)

AddDataFlag adds a data flag for the provided resource type.

func AddDataplaneFlag

func AddDataplaneFlag(
	cmd *cobra.Command,
	_type string,
)

AddDataplaneFlag adds a dataplane flag for the provided resource type.

func AddDescriptionFlag

func AddDescriptionFlag(
	cmd *cobra.Command,
	_type string,
)

AddDescriptionFlag adds a description flag for the provided resource type.

func AddDesiredStateFlag

func AddDesiredStateFlag(
	cmd *cobra.Command,
	_type string,
)

AddDesiredStateFlag adds a desired state flag for the provided resource type.

func AddDryRunFlag

func AddDryRunFlag(cmd *cobra.Command)

AddDryRunFlag adds the dry-run flag to the command.

func AddEndpointFlag

func AddEndpointFlag(cmd *cobra.Command)

AddEndpointFlag adds the persistent endpoint flag to the command.

func AddEnvironmentFlag

func AddEnvironmentFlag(
	cmd *cobra.Command,
	_type string,
)

AddEnvironmentFlag adds an environment flag for the provided resource type.

func AddFilenameFlag

func AddFilenameFlag(
	cmd *cobra.Command,
	_type string,
)

AddFilenameFlag adds a filename flag for the provided resource type.

func AddHomeDirFlag

func AddHomeDirFlag(cmd *cobra.Command)

AddHomeDirFlag adds the home directory flag to the command.

func AddIgnoreTokenCacheFlag

func AddIgnoreTokenCacheFlag(cmd *cobra.Command)

AddIgnoreTokenCacheFlag adds the ignore token cache flag to the command.

func AddImageFlag

func AddImageFlag(cmd *cobra.Command)

AddImageFlag adds the image flag to the command.

func AddIngressHostFlag

func AddIngressHostFlag(cmd *cobra.Command)

AddIngressHostFlag adds the persistent ingress-host flag to the command.

func AddInitializerFlag

func AddInitializerFlag(cmd *cobra.Command)

AddInitializerFlag adds the initializer flag to the command.

func AddJobIDFlag

func AddJobIDFlag(cmd *cobra.Command)

AddJobIDFlag adds the job ID flag to the command.

func AddLabelFlag

func AddLabelFlag(
	cmd *cobra.Command,
	_type string,
)

AddLabelFlag adds a label flag for the provided resource type.

func AddMethodFlag

func AddMethodFlag(cmd *cobra.Command)

AddMethodFlag adds the HTTP method flag to the command.

func AddNameFlag

func AddNameFlag(
	cmd *cobra.Command,
	_type string,
)

AddNameFlag adds a name flag for the provided resource type.

func AddNoListenFlag

func AddNoListenFlag(cmd *cobra.Command)

AddNoListenFlag adds the persistent no-browser flag to the command.

func AddNodepoolFlag

func AddNodepoolFlag(
	cmd *cobra.Command,
	_type string,
)

AddNodepoolFlag adds a nodepool flag for the provided resource type.

func AddOrganizationFlag

func AddOrganizationFlag(cmd *cobra.Command)

AddOrganizationFlag adds the persistent ingress-host flag to the command.

func AddOutputFlag

func AddOutputFlag(cmd *cobra.Command)

AddOutputFlag adds the output format flag to the command.

func AddProfileFlag

func AddProfileFlag(cmd *cobra.Command)

AddProfileFlag adds the persistent profile flag to the command.

func AddQueryFlag

func AddQueryFlag(cmd *cobra.Command)

AddQueryFlag adds the query flag to the command.

func AddScheduleFlag

func AddScheduleFlag(cmd *cobra.Command)

AddScheduleFlag adds the schedule flag to the command.

func AddServiceFlag

func AddServiceFlag(
	cmd *cobra.Command,
	_type string,
)

AddServiceFlag adds a service flag for the provided resource type.

func AddSetFlag

func AddSetFlag(cmd *cobra.Command)

AddSetFlag adds the set flag to the command.

func AddSizeFlag

func AddSizeFlag(cmd *cobra.Command)

AddSizeFlag adds the size flag to the command.

func AddSnapshotFlag

func AddSnapshotFlag(cmd *cobra.Command)

AddSnapshotFlag adds the snapshot flag to the command.

func AddSnapshotVolumeFlag

func AddSnapshotVolumeFlag(cmd *cobra.Command)

AddSnapshotVolumeFlag adds snapshot workspace and volume flags to the command.

func AddSortFlag

func AddSortFlag(cmd *cobra.Command)

AddSortFlag adds the sort expression flag to the command.

func AddSpecFlag

func AddSpecFlag(
	cmd *cobra.Command,
	_type string,
)

AddSpecFlag adds a spec flag for the provided resource type.

func AddStorageClassFlag

func AddStorageClassFlag(cmd *cobra.Command)

AddStorageClassFlag adds the storage class flag to the command.

func AddSubPathFlag

func AddSubPathFlag(
	cmd *cobra.Command,
	_type string,
)

AddSubPathFlag adds a subpath flag for the provided resource type.

func AddTenantFlag

func AddTenantFlag(cmd *cobra.Command)

AddTenantFlag adds the tenant flag to the command.

func AddUserIDFlag

func AddUserIDFlag(cmd *cobra.Command)

AddUserIDFlag adds the user-id flag to the command.

func AddValueFlag

func AddValueFlag(cmd *cobra.Command)

AddValueFlag adds the value flag to the command.

func AddVerboseFlag

func AddVerboseFlag(cmd *cobra.Command)

AddVerboseFlag adds the persistent verbose flag to the command.

func AddVolumeFlag

func AddVolumeFlag(
	cmd *cobra.Command,
	_type string,
)

AddVolumeFlag adds workspace and volume flags for the provided resource type.

func BindToViper

func BindToViper(
	cmd *cobra.Command,
	_ []string,
)

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.

Jump to

Keyboard shortcuts

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