cli

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugFlagName = "debug"
	LogFlagName   = "log"
)

Names of the CLI flags defined and used in this package.

Variables

This section is empty.

Functions

func BeforeCommand

func BeforeCommand(cmd *cobra.Command) error

Ensure to enable debug logging before any command finally is executed.

func SetupCLI

func SetupCLI(cmd *cobra.Command)

SetupCLI adds the "--debug" flag to the specified command that changes the logging level to debug.

Types

This section is empty.

Jump to

Keyboard shortcuts

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