states

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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
	GetDebugMode() bool
	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
	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
	SetNoColorMode(b bool)
	CountOfNoColor() int
	SetNoColorCount(hits int)

	IsVerboseMode() bool
	IsVerboseModePure() bool
	SetVerboseMode(b bool)
	CountOfVerbose() int
	SetVerboseCount(hits int)

	IsQuietMode() bool
	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