CompileDaemon
CompileDaemon copied to clipboard
Strips color from output of running daemon
CompileDaemon seems to strip any color coming from the running binary that its watching.
This conflicts with #16 so something else is going on here. Do you have a minimal example to reproduce the behaviour?
I saw this using chi router's logging middleware. Here is a pretty minimal example.
package main
import (
"http"
"github.com/pressly/chi"
"github.com/pressly/chi/middleware"
)
func main() {
r := chi.NewRouter()
r.Use(middleware.Logger)
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello World"))
})
http.ListenAndServe(":8000", r)
}
Here is the command I'm running for CompileDaemon
$ CompileDaemon -command=cmd/server/serve -build-dir cmd/server/ -color=true -exclude-dir=".git" -exclude-dir="Godeps" -exclude-dir=".idea" -exclude-dir="vendor"