We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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