flags

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpAll

func DumpAll(fs *pflag.FlagSet, list ...string)

func EnsureAlterableFlags

func EnsureAlterableFlags(cmd *cobra.Command, name ...string)

Checks for alternetable flags. One of the provided flags must needs to be set.

func EnsureRequiredFlags

func EnsureRequiredFlags(cmd *cobra.Command, name ...string)

Checks if a flag value in a command has been provided by the user Or not. The ordering of the flags can be set for nested flags.

func InitFlags

func InitFlags()

Init all the pflags and all underlying go flags All go flags of the underlying library converted to pflag and can set from terminal as flags.

func SetLogLevel

func SetLogLevel(l int)

Sets log level in runtime.

Types

This section is empty.

Jump to

Keyboard shortcuts

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