Skip to content

Commit

Permalink
Use colors on windows instead of funny characters, fixes #363 (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Apr 20, 2018
1 parent 98bcc81 commit 6cabb84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/output/output_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package output
import (
"os"

"github.com/fatih/color"
log "github.com/sirupsen/logrus"
)

Expand All @@ -17,9 +18,9 @@ var (

// LogSetUp sets up UserOut and log loggers as needed by ddev
func LogSetUp() {
// Use stdout instead of stderr for all user output
log.SetOutput(os.Stdout)
UserOut.Out = os.Stdout
// Use color.Output instead of stderr for all user output
log.SetOutput(color.Output)
UserOut.Out = color.Output

if !JSONOutput {
UserOut.Formatter = UserOutFormatter
Expand Down

0 comments on commit 6cabb84

Please sign in to comment.