reloader
Build & run a Go app or its tests for every change.
Install
curl -L -o ~/bin/reloader $(curl --silent 'https://api.github.com/repos/altipla-consulting/reloader/releases/latest' | jq -r '.assets[0].browser_download_url') && chmod +x ~/bin/reloader
Usage
Run & reload the app wth every change:
reloader run ./cmd/myapp
Watch additional folders recursively for changes:
reloader run ./cmd/myapp -w ./pkg
Restart the app when configuration files change:
reloader run ./pkg/foo ./pkg/bar -e .pbtext -e .yml
Restart automatically the app when it fails:
reloader run ./pkg/foo -r
Run tests and watch for changes to run them again:
reloader tests ./pkg/foo ./pkg/bar
Contributing
You can make pull requests or create issues in GitHub. Any code you send should be formatted using make gofmt
.
License
MIT License