Versions in this module Expand all Collapse all v1 v1.10.3 Dec 16, 2024 v1.10.2 Dec 15, 2024 Changes in this version + func GetBoolFlagValue(cmd *cobra.Command, flag BoolFlag) bool + func GetBoolPersistentFlagValue(cmd *cobra.Command, flag BoolFlag) bool + func GetInt64FlagValue(cmd *cobra.Command, flag Int64Flag) int64 + func GetIntFlagValue(cmd *cobra.Command, flag IntFlag) int + func GetIntPersistentFlagValue(cmd *cobra.Command, flag IntFlag) int + func GetIntSliceFlagValue(cmd *cobra.Command, flag IntSliceFlag) []int + func GetIntSlicePersistentFlagValue(cmd *cobra.Command, flag IntSliceFlag) []int + func GetStringFlagValue(cmd *cobra.Command, flag StringFlag) string + func GetStringPersistentFlagValue(cmd *cobra.Command, flag StringFlag) string + func GetStringSliceFlagValue(cmd *cobra.Command, flag StringSliceFlag) []string + func GetStringSlicePersistentFlagValue(cmd *cobra.Command, flag StringSliceFlag) []string + func GetUint64FlagValue(cmd *cobra.Command, flag Uint64Flag) uint64 + func HasFlagsChanged(cmd *cobra.Command, flags []Flag) bool + func IsFlagChanged(cmd *cobra.Command, flag Flag) bool + func RegisterFlags(cmd *cobra.Command, flags []Flag) error + func RegisterPFlags(cmd *cobra.Command, flags []Flag) error + func SetParseErrorHandle(f errorHandle) + type BoolFlag struct + DefValue bool + Deprecated string + Hidden bool + Name string + Shorthand string + Usage string + func (f BoolFlag) RegisterTo(fs *pflag.FlagSet) error + type Flag interface + RegisterTo func(fs *pflag.FlagSet) error + type Int64Flag struct + DefValue int64 + Deprecated string + Hidden bool + Name string + Shorthand string + Usage string + func (f Int64Flag) RegisterTo(fs *pflag.FlagSet) error + type IntFlag struct + DefValue int + Deprecated string + Hidden bool + Name string + Shorthand string + Usage string + func (f IntFlag) RegisterTo(fs *pflag.FlagSet) error + type IntSliceFlag struct + DefValue []int + Deprecated string + Hidden bool + Name string + Shorthand string + Usage string + func (f IntSliceFlag) RegisterTo(fs *pflag.FlagSet) error + type StringFlag struct + DefValue string + Deprecated string + Hidden bool + Name string + Shorthand string + Usage string + func (f StringFlag) RegisterTo(fs *pflag.FlagSet) error + type StringSliceFlag struct + DefValue []string + Deprecated string + Hidden bool + Name string + Shorthand string + Usage string + func (f StringSliceFlag) RegisterTo(fs *pflag.FlagSet) error + type Uint64Flag struct + DefValue uint64 + Deprecated string + Hidden bool + Name string + Shorthand string + Usage string + func (f Uint64Flag) RegisterTo(fs *pflag.FlagSet) error