Skip to content

Commit

Permalink
Fix color output on windows
Browse files Browse the repository at this point in the history
Use color.Output and color.Error so that color codes are handled properly on windows.
  • Loading branch information
dnephin committed Aug 27, 2021
1 parent c5a73e1 commit 7cadea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func setupFlags(name string) (*pflag.FlagSet, *options) {
junitTestCaseClassnameFormat: &junitFieldFormatValue{},
junitTestSuiteNameFormat: &junitFieldFormatValue{},
postRunHookCmd: &commandValue{},
stdout: os.Stdout,
stderr: os.Stderr,
stdout: color.Output,
stderr: color.Error,
}
flags := pflag.NewFlagSet(name, pflag.ContinueOnError)
flags.SetInterspersed(false)
Expand Down

0 comments on commit 7cadea0

Please sign in to comment.