Respect NO_COLOR

Fixes #10004
This commit is contained in:
Bjørn Erik Pedersen
2022-06-13 15:28:08 +02:00
parent 44f3c07969
commit cbc35c48d2
4 changed files with 13 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ func createPositionStringFormatter(formatStr string) func(p Position) string {
msg := fmt.Sprintf(format, args...)
if terminal.IsTerminal(os.Stdout) {
if terminal.PrintANSIColors(os.Stdout) {
return terminal.Notice(msg)
}