# Packages
Package global provides CLI global flags.
# Functions
ErrorHandler returns `FlagErrHandlerFunc` which takes a flag parsing error and tries to suggest the correct command to use with this flag.
No description provided by the author
NewFlag returns a new Flag instance.
No description provided by the author
No description provided by the author
NewValue returns a callback function that is used to get a new value for the current flag.
StrictControlsByCommand returns a callback function that adds the taken controls as subcontrols for the given `controlNames`.
StrictControlsByGlobalFlags returns a callback function that adds the taken controls as subcontrols for the given `controlNames`.
StrictControlsByMovedGlobalFlags returns a callback function that adds the taken controls as subcontrols for the given `controlNames`.
WithDeprecatedFlag returns an `Option` that will register the given `deprecatedFlag` as a deprecated flag.
WithDeprecatedMovedFlag returns an `Option` that will register the given `deprecatedFlag` as a deprecated flag that is moved to the given `commandName`.
WithDeprecatedName does the same as `WithDeprecatedNames`, but with a single name.
WithDeprecatedNames returns an `Option` that will create a deprecated flag.
WithDeprecatedNamesEnvVars returns an `Option` that will create a deprecated flag, with the given `flagNames`, `envVars` assigned to the flag names and environment variables as is.
WithDeprecatedPrefix returns an `Option` that will create a deprecated flag with the same name as the new flag, but with the specified `prefix` prepended to the names and environment variables.
# Constants
TerragruntPrefix is an environment variable deprecated prefix.
TgPrefix is an environment variable prefix.
# Structs
No description provided by the author
DeprecatedFlag represents a deprecated flag that is not shown in the CLI help, but its names, envVars, are registered.
Flag is a wrapper for `cli.Flag` that avoids displaying deprecated flags in help, but registers their flag names and environment variables.
No description provided by the author
# Type aliases
DeprecatedFlags are multiple of DeprecatedFlag flags.
NewValueFunc represents a function that returns a new value for the current flag if a deprecated flag is called.
Option is used to set options to the `Flag`.
Prefix helps to combine strings into flag names or environment variables in a convenient way.
RegisterStrictControlsFunc represents a callback func that registers the given controls in the `opts.StrictControls` stict control tree .