MCPcopy Create free account
hub / github.com/conforma/cli / SetColorEnabled

Function SetColorEnabled

internal/utils/helpers.go:140–142  ·  view source on GitHub ↗
(flagNoColor, flagForceColor bool)

Source from the content-addressed store, hash-verified

138var ColorEnabled bool
139
140func SetColorEnabled(flagNoColor, flagForceColor bool) {
141 ColorEnabled = setColorEnabled(flagNoColor, flagForceColor)
142}
143
144func setColorEnabled(flagNoColor, flagForceColor bool) bool {
145 if flagNoColor || anyEnvSet([]string{"EC_NO_COLOR", "EC_NO_COLOUR", "NO_COLOR", "NO_COLOUR"}) {

Callers 4

WriteReportFunction · 0.92
runValidateVSAFunction · 0.92
validateInputCmdFunction · 0.92
TestTemplateHelpersFunction · 0.85

Calls 1

setColorEnabledFunction · 0.85

Tested by 1

TestTemplateHelpersFunction · 0.68