cli_helpers

package
v11.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultLogLevel   = log.InfoLevel
	CustomLogLevelSet = false
)

Functions

func AddSecretsCleanupLogHook

func AddSecretsCleanupLogHook()

func FixHOME

func FixHOME(app *cli.App)

func LogRuntimePlatform added in v1.1.3

func LogRuntimePlatform(app *cli.App)

func SetupCPUProfile

func SetupCPUProfile(app *cli.App)

func SetupLogLevelOptions

func SetupLogLevelOptions(app *cli.App)

func WarnOnBool

func WarnOnBool(args []string)

WarnOnBool logs warning if args contains true or false github.com/urfave/cli breaks badly if boolean are set using --flag true instead of --flag=true or just --flag this is a simple check that warn the user about this if detects "true" or "false" alone in the arguments

Types

type SecretsCleanupHook

type SecretsCleanupHook struct{}

func (*SecretsCleanupHook) Fire

func (s *SecretsCleanupHook) Fire(entry *logrus.Entry) error

func (*SecretsCleanupHook) Levels

func (s *SecretsCleanupHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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