flags

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlagsAndValues

func GetFlagsAndValues(flags *pflag.FlagSet, excludeFilter string) []string

GetFlagsAndValues returns all flags and their values as a slice with elements in the format of "--<flag>=<value>"

func SetFlagsFromEnv

func SetFlagsFromEnv(flags *pflag.FlagSet, prefix string)

func SetLoggingFlags

func SetLoggingFlags(flags *pflag.FlagSet)

func VerifyRequiredFlags

func VerifyRequiredFlags(cmd *cobra.Command, requiredFlags []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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