package
3.16.4
Repository: https://github.com/ontariosystems/iscenv.git
Documentation: pkg.go.dev

# Functions

AddConfigFlag adds a flag to the provided command that is also bound to a config value.
AddConfigFlagP is like AddConfigFlag but accepts a shorthand letter that can be used after a single dash.
AddFlag adds a flag to the provided command.
AddFlagComplex adds a flag to the provided cobra command.
AddFlagP is like AddFlag, but accepts a shorthand letter that can be used after a single dash.
GetBool returns a flag value by name as a bool.
GetFlagKey returns the key for a flag given its name.
GetInt returns a flag value by name as a int.
GetInt64 returns a flag value by name as a int64.
GetKeys returns a slice of the keys of the flags.
GetRawValue returns a flag value as the underlying interface without asserting a type.
GetString returns a flag value by name as a string.
GetStringSlice returns a flag value by name as a string slice.
GetUint returns a flag value by name as a uint.
GetValue returns a flag value by name as an interface.
GetValueWithKey returns a flag value by key as an interface.