From e30498689cafb07a1fa09c640e45cbd3a005fef4 Mon Sep 17 00:00:00 2001 From: tsuyoshiwada Date: Mon, 2 Apr 2018 01:04:22 +0900 Subject: [PATCH] fix: Fix color output bug in windows help command --- cmd/git-chglog/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/git-chglog/main.go b/cmd/git-chglog/main.go index cae9214d..fe435507 100644 --- a/cmd/git-chglog/main.go +++ b/cmd/git-chglog/main.go @@ -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"