Documentation
¶
Index ¶
- Constants
- func AddFlags(fs *pflag.FlagSet)
- func Config(name string, value configValue, usage string) *configValue
- func ConfigVar(p *configValue, name string, value configValue, usage string)
- func PrintDefaultConfigAndExitIfRequested(config interface{})
- func PrintFlags(flags *pflag.FlagSet)
- func PrintMinConfigAndExitIfRequested(config interface{})
Constants ¶
View Source
const ( ConfigFalse configValue = 0 ConfigTrue configValue = 1 )
Variables ¶
This section is empty.
Functions ¶
func AddFlags ¶ added in v1.2.0
AddFlags registers this package's flags on arbitrary FlagSets, such that they point to the same value as the global flags.
func PrintDefaultConfigAndExitIfRequested ¶ added in v1.2.0
func PrintDefaultConfigAndExitIfRequested(config interface{})
PrintDefaultConfigAndExitIfRequested will check if the -defaultconfig flag was passed and, if so, print the default config and exit.
func PrintMinConfigAndExitIfRequested ¶ added in v1.2.0
func PrintMinConfigAndExitIfRequested(config interface{})
PrintMinConfigAndExitIfRequested will check if the -minconfig flag was passed and, if so, print the min config and exit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.