states

package
v1.6.25 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdrMinimal

type CmdrMinimal interface {
	InDebugging() bool      // is debug build
	GetDebugMode() bool     // is debug build or the debug-mode flag is true, settable by `--debug`
	SetDebugMode(b bool)    //
	GetDebugLevel() int     // return debug level as a integer, 0..n, it represents count of `--debug` or set by caller explicitly
	SetDebugLevel(hits int) //

	GetTraceMode() bool     //  the trace-mode flag, settable by `--trace`
	SetTraceMode(b bool)    //
	GetTraceLevel() int     // return trace level as a integer, 0..n, it represents count of `--trace` or set by caller explicitly
	SetTraceLevel(hits int) //

	IsNoColorMode() bool      // settable by `--no-color`
	SetNoColorMode(b bool)    //
	CountOfNoColor() int      //
	SetNoColorCount(hits int) //

	IsVerboseMode() bool      // settable by `--verbose` or `-v`
	IsVerboseModePure() bool  //
	SetVerboseMode(b bool)    //
	CountOfVerbose() int      //
	SetVerboseCount(hits int) //

	IsQuietMode() bool      // settable by `--quiet` or `-q`
	SetQuietMode(b bool)    //
	CountOfQuiet() int      //
	SetQuietCount(hits int) //
}

CmdrMinimal provides the accessors to debug/trace flags

func Env

func Env() CmdrMinimal

Jump to

Keyboard shortcuts

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