mirror of
https://github.com/git-chglog/git-chglog.git
synced 2026-01-23 02:15:12 +00:00
fix: Fix color output bug in windows help command
This commit is contained in:
parent
4a9b3ef65a
commit
e30498689c
1 changed files with 5 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue