Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NO_COLOR
1 parent ca4d666 commit ecdc428Copy full SHA for ecdc428
cliui/cliui.go
@@ -50,7 +50,7 @@ var (
50
func Color(s string) termenv.Color {
51
colorOnce.Do(func() {
52
color = termenv.NewOutput(os.Stdout).ColorProfile()
53
- if flag.Lookup("test.v") != nil {
+ if _, exists := os.LookupEnv("NO_COLOR"); exists || flag.Lookup("test.v") != nil {
54
// Use a consistent colorless profile in tests so that results
55
// are deterministic.
56
color = termenv.Ascii
0 commit comments