Any non-empty value should be a disabling intent.
Conforms to the informal standard proposed in https://no-color.org
This commit is contained in:
parent
21e445beab
commit
48e7df2337
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ func makeColorFunc(color string) func(string) string {
|
|||
|
||||
func isColorEnabled() bool {
|
||||
if !checkedNoColor {
|
||||
_isColorEnabled = os.Getenv("NO_COLOR") != "1"
|
||||
_isColorEnabled = os.Getenv("NO_COLOR") == ""
|
||||
checkedNoColor = true
|
||||
}
|
||||
return _isColorEnabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue