githubnemo / CompileDaemon

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

add run-dir flag to daemon.go #33

Closed kworm83 closed 5 years ago

kworm83 commented 5 years ago

This proposed patch adds a run-dir option to run the command in a specified directory. Useful for project structures like: cmd/command1 cmd/command2 pkg/package1 pkg/package2 ui/tmpl etc...

where you want to watch all the files in the root of the project to cover the packages and ui/templates, etc.

githubnemo commented 5 years ago

I guess this was already possible with something like bash -c 'cd ui; mycommand' but this doesn't hurt. Thanks for the contribution :)

kworm83 commented 5 years ago

Yeah I knew it could be done with scripting…just thought it would be easy enough to patch it in.

Thanks for merging it!

On Mar 11, 2019, at 7:30 PM, githubnemo notifications@github.com wrote:

I guess this was already possible with something like bash -c 'cd ui; mycommand' but this doesn't hurt. Thanks for the contribution :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.