Skip to content

Commit

Permalink
Disable colouring on windows
Browse files Browse the repository at this point in the history
Fixes #914, #915

Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel authored and tekton-robot committed Apr 21, 2020
1 parent 26d3491 commit 1019249
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package flags

import (
"os"
"runtime"

"github.com/spf13/cobra"
"github.com/spf13/pflag"
Expand Down Expand Up @@ -99,6 +100,10 @@ func InitParams(p cli.Params, cmd *cobra.Command) error {
p.SetNoColour(true)
}

if runtime.GOOS == "windows" {
p.SetNoColour(true)
}

return nil
}

Expand Down

0 comments on commit 1019249

Please sign in to comment.