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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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