Skip to content

Commit b87cc82

Browse files
Add force color mode
Signed-off-by: Victor Boissiere <victor.boissiere@qonto.com>
1 parent acc837b commit b87cc82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

validator/errors.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package validator
22

33
import (
44
"fmt"
5+
56
"github.com/fatih/color"
67
)
78

@@ -19,6 +20,10 @@ type ValidationIssue struct {
1920
Path string
2021
}
2122

23+
func init() {
24+
color.NoColor = false // Force colorization
25+
}
26+
2227
var (
2328
redBold = color.New(color.FgRed, color.Bold).SprintFunc()
2429
yellowBold = color.New(color.FgYellow, color.Bold).SprintFunc()

0 commit comments

Comments
 (0)