diff --git a/internal/values.go b/internal/values.go index f65edf2..7364e39 100644 --- a/internal/values.go +++ b/internal/values.go @@ -6,6 +6,7 @@ import ( "os" "path" + "github.com/fatih/color" "github.com/magefile/mage/sh" "github.com/wavesoftware/go-ensure" "github.com/wavesoftware/go-magetasks/config" @@ -63,3 +64,9 @@ func relativeToRepo(paths []string) string { } return path.Join(fullpath...) } + +func init() { + if val, envset := os.LookupEnv("FORCE_COLOR"); envset && val == "true" { + color.NoColor = false + } +}