MCPcopy Create free account
hub / github.com/auth0/auth0-cli / Initialize

Function Initialize

internal/ansi/ansi.go:42–45  ·  view source on GitHub ↗

Initialize re-instantiates the Aurora instance This initialization step is necessary because the parsing of the --no-color flag is done fairly late in the application cycle.

(shouldDisableColors bool)

Source from the content-addressed store, hash-verified

40// This initialization step is necessary because the parsing of the
41// --no-color flag is done fairly late in the application cycle.
42func Initialize(shouldDisableColors bool) {
43 DisableColors = shouldDisableColors
44 color = Color()
45}
46
47// ColorizeJSON returns a colorized version of the input JSON, if the writer
48// supports colors.

Callers 1

buildRootCmdFunction · 0.92

Calls 1

ColorFunction · 0.85

Tested by

no test coverage detected