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
Click to show internal directories.
Click to hide internal directories.