Documentation
¶
Index ¶
- Constants
- func GetLoglevelOrDefaultOrDie() int
- func InstallKlog(cmd *cobra.Command)
- func LogCommandStarting(cmd *cobra.Command)
- func NormalizeNameForEnvVar(name string) string
- func ReadFlagsFromEnv(prefix string, cmd *cobra.Command) error
- func UsageError(cmd *cobra.Command, format string, args ...interface{}) error
Constants ¶
View Source
const (
FlagLogLevelKey = "loglevel"
)
Variables ¶
This section is empty.
Functions ¶
func GetLoglevelOrDefaultOrDie ¶ added in v1.15.0
func GetLoglevelOrDefaultOrDie() int
func InstallKlog ¶
func LogCommandStarting ¶ added in v1.19.0
LogCommandStarting logs the start of the given command along with the Git commit.
func NormalizeNameForEnvVar ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.