Closed kworm83 closed 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 :)
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.
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.