Skip to content

Commit

Permalink
Use colorable.NewColorable*() to fix colored output on Windows
Browse files Browse the repository at this point in the history
Fixes #35
  • Loading branch information
dshafik committed Feb 27, 2018
1 parent ddddffd commit e8ba7ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions akamai.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"strings"

"github.com/fatih/color"
"github.com/mattn/go-colorable"
"github.com/urfave/cli"
)

Expand All @@ -40,6 +41,8 @@ func main() {
app.Usage = "Akamai CLI"
app.Version = VERSION
app.Copyright = "Copyright (C) Akamai Technologies, Inc"
app.Writer = colorable.NewColorableStdout()
app.ErrWriter = colorable.NewColorableStderr()

firstRun()

Expand Down

0 comments on commit e8ba7ee

Please sign in to comment.