arguments

package
v1.2.32 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDebugFlag

func AddDebugFlag(fs *pflag.FlagSet)

AddDebugFlag adds the '--debug' flag to the given set of command line flags.

func AddProfileFlag

func AddProfileFlag(fs *pflag.FlagSet)

AddProfileFlag adds the '--profile' flag to the given set of command line flags.

func AddRegionFlag added in v0.1.10

func AddRegionFlag(fs *pflag.FlagSet)

AddRegionFlag adds the '--region' flag to the given set of command line flags.

func AddStringFlag added in v1.2.4

func AddStringFlag(cmd *cobra.Command, flagName string)

func GetProfile added in v0.1.10

func GetProfile() string

func GetRegion added in v0.1.10

func GetRegion() string

func HasUnknownFlags added in v1.0.0

func HasUnknownFlags() bool

HasUnknownFlags returns whether the flag parser detected any unknown flags

func IsValidMode added in v1.1.6

func IsValidMode(modes []string, mode string) bool

func MarkRegionHidden added in v1.2.11

func MarkRegionHidden(parentCmd *cobra.Command, childrenCmds []*cobra.Command)

func ParseKnownFlags added in v1.2.4

func ParseKnownFlags(cmd *cobra.Command, argv []string, failOnUnknown bool) error

Parse known flags will take the command line arguments and map the ones that fit with known flags.

func ParseUnknownFlags added in v1.0.0

func ParseUnknownFlags(cmd *cobra.Command, argv []string) error

ParseUnknownFlags parses all flags from the CLI, including unknown ones, and adds them to the current command tree

Types

This section is empty.

Jump to

Keyboard shortcuts

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