Skip to content

Commit

Permalink
fix: Fix color output bug in windows help command
Browse files Browse the repository at this point in the history
  • Loading branch information
wadackel committed Apr 1, 2018
1 parent 4a9b3ef commit e304986
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/git-chglog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"io"
"os"

"github.com/fatih/color"
Expand Down Expand Up @@ -59,6 +60,10 @@ func main() {
ttl("EXAMPLE:"),
)

cli.HelpPrinter = func(w io.Writer, templ string, data interface{}) {
cli.HelpPrinterCustom(colorable.NewColorableStdout(), templ, data, nil)
}

app := cli.NewApp()
app.Name = "git-chglog"
app.Usage = "todo usage for git-chglog"
Expand Down

0 comments on commit e304986

Please sign in to comment.