flags

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvStringCobra

func EnvStringCobra(flags *pflag.FlagSet, name, defaultValue, envVarName, usage string) *pflag.Flag

EnvStringCobra register an environment-backed string variable to the flagset

Types

type Flag

type Flag interface {
	String() string
}

Flag represents the flag registration

func EnvString

func EnvString(name, defaultValue, envVarName, usage string) Flag

EnvString register an environment-backed string variable to the go runtime flag set

Jump to

Keyboard shortcuts

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