Skip to content

Strips color from output of running daemon #18

Open

Description

@tlong-dev

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

Activity

  1. githubnemo commented on Aug 1, 2016

    @githubnemo
    Owner

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

  2. tlong-dev commented on Aug 1, 2016

    @tlong-dev
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions