githubnemo / CompileDaemon

Very simple compile daemon for Go
BSD 2-Clause "Simplified" License
1.6k stars 152 forks source link

Beep on build error option #8

Open sathishvj opened 9 years ago

sathishvj commented 9 years ago

CompileDaemon is great. Thank you.

It could use an additional feature to beep if a build breaks. I'm using it while building a web app. I usually have it running on some terminal in the background and I never get to know if there is an error. I reload the web pages but go through the user steps, discover that the code has had no effect, and only then maybe check if the build had failed or not. So much time lost. It would really help to have a configurable beep to alert me when the build fails.

jimstudt commented 9 years ago

There is a pull request for an -on-error *xxx* option. If that is added then -on-error "tput bel" does exactly this, at least on unix like machines.

sathishvj commented 9 years ago

thank you. I shall try that out. Another question is how to automatically kick off go test via the same process.

githubnemo commented 9 years ago

Can't you use -build "go test"? AFAIK go test invokes go build.

This has the effect that building or test failures invoke the -on-error command added by @jimstudt.