cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Disabled defines the debug/logging level where all logging is disabled.
	Disabled = iota

	// Debug defines the debug/log level of basic debug information within the package.
	Debug

	// Info defines the debug/log level of informative or noteworthy information
	Info

	// Warn defines the debug/log level of warnings and other things that should be investigated in the package
	Warn

	// Error defines the debug/log level of errors within the package
	Error

	// Fatal defines the debug/log level of fatal events within the package.
	Fatal

	// Panic defines the debug/log level of panics within the package. These are unrecoverable.
	Panic
)

Variables

This section is empty.

Functions

func ApplyContext

func ApplyContext(ctx Context)

ApplyContext will load the context into the cmd package

Types

type Context

type Context struct {
	DebugLevel DebugLevel
	LogLevel   LogLevel
}

Context provides the CLI context global to all commands

type DebugLevel

type DebugLevel int

type LogLevel

type LogLevel int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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