Documentation ¶
Index ¶
- func DeprecateFlag(flagSet *pflag.FlagSet, old string, new string)
- func ForwardFlag(flagSet *pflag.FlagSet, old string, new string)
- func HideFlag(flagSet *pflag.FlagSet, name string)
- func HideFlagSet(flagSet *pflag.FlagSet) *pflag.FlagSet
- func NormalizeFlags(f *pflag.FlagSet, name string) pflag.NormalizedName
- func NormalizePaths(paths []string) []string
- func NormalizedFlagSet() *pflag.FlagSet
- func SaveAuthCache(cache AuthCache) (err error)
- func SelectAllFlagSet(what string) *pflag.FlagSet
- func SelectFieldMask(cmdFlags *pflag.FlagSet, fieldMaskFlags ...*pflag.FlagSet) (paths []string)
- func UnsetFlagSet() *pflag.FlagSet
- func UpdateFieldMask(cmdFlags *pflag.FlagSet, fieldMaskFlags ...*pflag.FlagSet) (paths []string)
- type AuthCache
- type AuthData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeprecateFlag ¶
DeprecateFlag deprecates a CLI flag.
func ForwardFlag ¶
ForwardFlag forwards the flag value of old to new if new is not set while old is.
func HideFlagSet ¶ added in v3.12.0
HideFlagSet hides the flags from the provided flag set.
func NormalizeFlags ¶
func NormalizeFlags(f *pflag.FlagSet, name string) pflag.NormalizedName
func NormalizePaths ¶
NormalizePaths converts arguments to field mask paths, replacing '-' with '_'
func NormalizedFlagSet ¶ added in v3.19.2
NormalizedFlagSet returns a flagset with a NormalizeFunc that replaces underscores to dashes.
func SaveAuthCache ¶
SaveAuthCache saves the auth cache to the cache file.
func SelectAllFlagSet ¶
SelectAllFlagSet returns a flagset with the --all flag
func SelectFieldMask ¶
func UnsetFlagSet ¶
UnsetFlagSet returns a flagset with the --unset flag
Types ¶
type AuthCache ¶
type AuthCache struct {
// contains filtered or unexported fields
}
AuthCache stores auth for the CLI.
func GetAuthCache ¶
GetAuthCache gets the auth cache form the cache file.
Click to show internal directories.
Click to hide internal directories.