variable global color
This commit is contained in:
parent
417de6257a
commit
81799caeb6
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ func makeColorFunc(color string) func(string) string {
|
|||
}
|
||||
}
|
||||
|
||||
func isColorEnabled() bool {
|
||||
func isColorEnabled() bool {
|
||||
if !checkedNoColor {
|
||||
_isColorEnabled = os.Getenv("NO_COLOR") == ""
|
||||
checkedNoColor = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue