Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strips color from output of running daemon #18

Open
xealot opened this issue Aug 1, 2016 · 2 comments
Open

Strips color from output of running daemon #18

xealot opened this issue Aug 1, 2016 · 2 comments

Comments

@xealot
Copy link

xealot commented Aug 1, 2016

CompileDaemon seems to strip any color coming from the running binary that its watching.

@githubnemo
Copy link
Owner

This conflicts with #16 so something else is going on here. Do you have a minimal example to reproduce the behaviour?

@xealot
Copy link
Author

xealot commented Aug 1, 2016

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants