Versions in this module Expand all Collapse all v3 v3.0.0 Oct 14, 2024 Changes in this version + type CommandLineInterface struct + Command *cobra.Command + Flags map[string]interface{} + func New(binaryName string, shortUsage string, longUsage, examples string, run runFunc) CommandLineInterface + func (*CommandLineInterface) BoolMe(i interface{}) *bool + func (*CommandLineInterface) ByteQuantityMe(i interface{}) *bytequantity.ByteQuantity + func (*CommandLineInterface) ByteQuantityRangeMe(i interface{}) *selector.ByteQuantityRangeFilter + func (*CommandLineInterface) Float64Me(i interface{}) *float64 + func (*CommandLineInterface) Float64RangeMe(i interface{}) *selector.Float64RangeFilter + func (*CommandLineInterface) Int32Me(i interface{}) *int32 + func (*CommandLineInterface) Int32RangeMe(i interface{}) *selector.Int32RangeFilter + func (*CommandLineInterface) IntMe(i interface{}) *int + func (*CommandLineInterface) IntRangeMe(i interface{}) *selector.IntRangeFilter + func (*CommandLineInterface) RegexMe(i interface{}) *regexp.Regexp + func (*CommandLineInterface) StringMe(i interface{}) *string + func (*CommandLineInterface) StringSliceMe(i interface{}) *[]string + func (cl *CommandLineInterface) BoolFlag(name string, shorthand *string, defaultValue *bool, description string) + func (cl *CommandLineInterface) BoolFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue *bool, ...) + func (cl *CommandLineInterface) ByteQuantityFlag(name string, shorthand *string, defaultValue *bytequantity.ByteQuantity, ...) + func (cl *CommandLineInterface) ByteQuantityFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, ...) + func (cl *CommandLineInterface) ByteQuantityMinMaxRangeFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, ...) + func (cl *CommandLineInterface) ByteQuantityMinMaxRangeFlags(name string, shorthand *string, defaultValue *bytequantity.ByteQuantity, ...) + func (cl *CommandLineInterface) ConfigBoolFlag(name string, shorthand *string, defaultValue *bool, description string) + func (cl *CommandLineInterface) ConfigIntFlag(name string, shorthand *string, defaultValue *int, description string) + func (cl *CommandLineInterface) ConfigPathFlag(name string, shorthand *string, defaultValue *string, description string) + func (cl *CommandLineInterface) ConfigStringFlag(name string, shorthand *string, defaultValue *string, description string, ...) + func (cl *CommandLineInterface) ConfigStringOptionsFlag(name string, shorthand *string, defaultValue *string, description string, ...) + func (cl *CommandLineInterface) ConfigStringSliceFlag(name string, shorthand *string, defaultValue []string, description string) + func (cl *CommandLineInterface) Float64FlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue *float64, ...) + func (cl *CommandLineInterface) Float64MinMaxRangeFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue *float64, ...) + func (cl *CommandLineInterface) Float64MinMaxRangeFlags(name string, shorthand *string, defaultValue *float64, description string) + func (cl *CommandLineInterface) Int32FlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue *int32, ...) + func (cl *CommandLineInterface) Int32MinMaxRangeFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue *int32, ...) + func (cl *CommandLineInterface) Int32MinMaxRangeFlags(name string, shorthand *string, defaultValue *int32, description string) + func (cl *CommandLineInterface) IntFlag(name string, shorthand *string, defaultValue *int, description string) + func (cl *CommandLineInterface) IntFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue *int, ...) + func (cl *CommandLineInterface) IntMinMaxRangeFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue *int, ...) + func (cl *CommandLineInterface) IntMinMaxRangeFlags(name string, shorthand *string, defaultValue *int, description string) + func (cl *CommandLineInterface) ParseAndValidateFlags() (map[string]interface{}, error) + func (cl *CommandLineInterface) ParseFlags() (map[string]interface{}, error) + func (cl *CommandLineInterface) PathFlag(name string, shorthand *string, defaultValue *string, description string) + func (cl *CommandLineInterface) PathFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue *string, ...) + func (cl *CommandLineInterface) ProcessFlags() error + func (cl *CommandLineInterface) ProcessRangeFilterFlags() error + func (cl *CommandLineInterface) RatioFlag(name string, shorthand *string, defaultValue *string, description string) error + func (cl *CommandLineInterface) RegexFlag(name string, shorthand *string, defaultValue *string, description string) + func (cl *CommandLineInterface) RegexFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue *string, ...) + func (cl *CommandLineInterface) SetUntouchedFlagValuesToNil() error + func (cl *CommandLineInterface) StringFlag(name string, shorthand *string, defaultValue *string, description string, ...) + func (cl *CommandLineInterface) StringFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue *string, ...) + func (cl *CommandLineInterface) StringOptionsFlag(name string, shorthand *string, defaultValue *string, description string, ...) + func (cl *CommandLineInterface) StringOptionsFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue *string, ...) + func (cl *CommandLineInterface) StringSliceFlag(name string, shorthand *string, defaultValue []string, description string) + func (cl *CommandLineInterface) StringSliceFlagOnFlagSet(flagSet *pflag.FlagSet, name string, shorthand *string, defaultValue []string, ...) + func (cl *CommandLineInterface) SuiteBoolFlag(name string, shorthand *string, defaultValue *bool, description string) + func (cl *CommandLineInterface) SuiteStringFlag(name string, shorthand *string, defaultValue *string, description string, ...) + func (cl *CommandLineInterface) SuiteStringOptionsFlag(name string, shorthand *string, defaultValue *string, description string, ...) + func (cl *CommandLineInterface) SuiteStringSliceFlag(name string, shorthand *string, defaultValue []string, description string) + func (cl *CommandLineInterface) ValidateFlags() error Other modules containing this package github.com/aws/amazon-ec2-instance-selector github.com/aws/amazon-ec2-instance-selector/v2