Skip to content

Commit

Permalink
Merge pull request #9 from mattn/windows-color
Browse files Browse the repository at this point in the history
support Windows colors
  • Loading branch information
wadackel committed Feb 28, 2018
2 parents c284c96 + 88ea38e commit 1554e38
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/git-chglog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"os"

"github.com/fatih/color"
"github.com/mattn/go-colorable"
gitcmd "github.com/tsuyoshiwada/go-gitcmd"
"github.com/urfave/cli"
)
Expand Down Expand Up @@ -120,8 +121,8 @@ func main() {
initializer := NewInitializer(
&InitContext{
WorkingDir: wd,
Stdout: os.Stdout,
Stderr: os.Stderr,
Stdout: colorable.NewColorableStdout(),
Stderr: colorable.NewColorableStderr(),
},
fs,
NewQuestioner(
Expand All @@ -141,8 +142,8 @@ func main() {
chglogCLI := NewCLI(
&CLIContext{
WorkingDir: wd,
Stdout: os.Stdout,
Stderr: os.Stderr,
Stdout: colorable.NewColorableStdout(),
Stderr: colorable.NewColorableStderr(),
ConfigPath: c.String("config"),
OutputPath: c.String("output"),
Silent: c.Bool("silent"),
Expand Down

0 comments on commit 1554e38

Please sign in to comment.