Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
turn off colored output on windows in dev mode. fixes #348
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Apr 3, 2017
1 parent e2ff61a commit c19e6b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions buffalo/cmd/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import (
"log"
"os"
"os/exec"
"runtime"

"github.com/fatih/color"
"github.com/gobuffalo/buffalo/generators/assets/webpack"
rg "github.com/gobuffalo/buffalo/generators/refresh"
"github.com/markbates/refresh/refresh"
Expand All @@ -21,6 +23,9 @@ var devCmd = &cobra.Command{
This includes rebuilding your application when files change.
This behavior can be changed in your .buffalo.dev.yml file.`,
Run: func(c *cobra.Command, args []string) {
if runtime.GOOS == "windows" {
color.NoColor = true
}
defer func() {
msg := "There was a problem starting the dev server, Please review the troubleshooting docs: %s\n"
cause := "Unknown"
Expand Down

0 comments on commit c19e6b0

Please sign in to comment.