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

turn off colored output on windows in dev mode. fixes #348 #349

Merged
merged 1 commit into from
Apr 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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