fix: Fix color output bug in windows help command

This commit is contained in:
tsuyoshiwada 2018-04-02 01:04:22 +09:00
parent 4a9b3ef65a
commit e30498689c

View file

@ -2,6 +2,7 @@ package main
import (
"fmt"
"io"
"os"
"github.com/fatih/color"
@ -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"