Commit 9adf2a19
9adf2a195a79Merged
zhiliaev <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified
Description
disable ansi color for helm-diff
Details
- Commit
- 9adf2a195a79
- Parent
- 41a837a82cb9
pkg/log/log.gomodifiedView file
@@ -2,6 +2,7 @@
22
33
import (44
"fmt"5+
"github.com/mgutz/ansi"56
67
"github.com/bombsimon/logrusr/v2"78
"github.com/helmwave/helmwave/pkg/helper"@@ -101,6 +102,9 @@
101102
}102103
103104
func (l *Settings) setFormat() {105+
// Helm diff also use it106+
ansi.DisableColors(!l.color)107+
104108
switch l.format {105109
case "json":106110
log.SetFormatter(&log.JSONFormatter{