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