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.
1 parent 2c51756 commit 2e8e76eCopy full SHA for 2e8e76e
internal/env/env.go
@@ -11,6 +11,7 @@ import (
11
)
12
13
const (
14
+ CARAPACE_COLOR = "CARAPACE_COLOR" // TODO
15
CARAPACE_COMPLINE = "CARAPACE_COMPLINE" // TODO
16
CARAPACE_COVERDIR = "CARAPACE_COVERDIR" // coverage directory for sandbox tests
17
CARAPACE_EXPERIMENTAL = "CARAPACE_EXPERIMENTAL" // enable experimental features
@@ -29,6 +30,9 @@ const (
29
30
31
32
func ColorDisabled() bool {
33
+ if v, ok := os.LookupEnv(CARAPACE_COLOR); ok { // TODO multiple modes
34
+ return v == "0"
35
+ }
36
return getBool(NO_COLOR) || os.Getenv(CLICOLOR) == "0"
37
}
38
0 commit comments