Documentation ¶
Index ¶
- func DeprecateFlag(flagSet *pflag.FlagSet, old string, new string)
- func FieldFlags(v interface{}, prefix ...string) *pflag.FlagSet
- func FieldMaskFlags(v interface{}, prefix ...string) *pflag.FlagSet
- func ForwardFlag(flagSet *pflag.FlagSet, old string, new string)
- func NormalizeFlags(f *pflag.FlagSet, name string) pflag.NormalizedName
- func NormalizePaths(paths []string) []string
- func SaveAuthCache(cache AuthCache) (err error)
- func SelectAllFlagSet(what string) *pflag.FlagSet
- func SelectFieldMask(cmdFlags *pflag.FlagSet, fieldMaskFlags ...*pflag.FlagSet) (paths []string)
- func SetFields(dst interface{}, flags *pflag.FlagSet, prefix ...string) error
- 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 FieldFlags ¶
func FieldMaskFlags ¶
func ForwardFlag ¶
ForwardFlag forwards the flag value of old to new if new is not set while old is.
func NormalizeFlags ¶
func NormalizeFlags(f *pflag.FlagSet, name string) pflag.NormalizedName
func NormalizePaths ¶
NormalizePaths converts arguments to field mask paths, replacing '-' with '_'
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.