CompileDaemon icon indicating copy to clipboard operation
CompileDaemon copied to clipboard

Strips color from output of running daemon

Open xealot opened this issue 9 years ago • 2 comments

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

xealot avatar Aug 01 '16 18:08 xealot

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

githubnemo avatar Aug 01 '16 23:08 githubnemo

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"

xealot avatar Aug 01 '16 23:08 xealot