Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/altipla-consulting/reloader
Watch for file changes and reload Go binaries and tests in your development machine.
https://github.com/altipla-consulting/reloader
Last synced: about 1 month ago
JSON representation
Watch for file changes and reload Go binaries and tests in your development machine.
- Host: GitHub
- URL: https://github.com/altipla-consulting/reloader
- Owner: altipla-consulting
- License: mit
- Created: 2022-04-27T21:24:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-02T17:48:07.000Z (2 months ago)
- Last Synced: 2024-11-02T18:17:57.118Z (2 months ago)
- Language: Go
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reloader
Watch for file changes and reload Go binaries and tests in your development machine.
## Install
```shell
go install github.com/altipla-consulting/reloader@latest
```## Tests
Run one or multiple tests everytime their packages change:
```shell
reloader test ./pkg/foo ./pkg/bar
```Run tests in verbose mode showing the full output in real time:
```shell
reloader test -v ./pkg/foo
```Run only one test by name:
```shell
reloader test -v ./pkg/foo -r TestNameHere$
```Run all tests with a prefix in its name:
```shell
reloader test -v ./pkg/foo -r TestGet
```## Binaries
Run a binary and restart it everytime the current folder changes:
```shell
reloader run ./cmd/myapp
```Watch additional folders for changes to restart the application:
```shell
reloader run ./cmd/myapp -w ./pkg
```Restart application everytime code changes, or also with any config file change:
```shell
reloader run ./pkg/foo ./pkg/bar -e .json -e .yml
```Restart application if it exits unexpectedly:
```shell
reloader run ./pkg/foo -r
```## Contributing
You can make pull requests or create issues in GitHub. Any code you send should be formatted using `make gofmt`.
## License
[MIT License](LICENSE)