Skip to content

Watch for file changes and reload Go binaries and tests in your development machine.

License

Notifications You must be signed in to change notification settings

altipla-consulting/reloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reloader

Watch for file changes and reload Go binaries and tests in your development machine.

Install

go install github.com/altipla-consulting/reloader@latest

Tests

Run one or multiple tests everytime their packages change:

reloader test ./pkg/foo ./pkg/bar

Run tests in verbose mode showing the full output in real time:

reloader test -v ./pkg/foo

Run only one test by name:

reloader test -v ./pkg/foo -r TestNameHere$

Run all tests with a prefix in its name:

reloader test -v ./pkg/foo -r TestGet

Binaries

Run a binary and restart it everytime the current folder changes:

reloader run ./cmd/myapp

Watch additional folders for changes to restart the application:

reloader run ./cmd/myapp -w ./pkg

Restart application everytime code changes, or also with any config file change:

reloader run ./pkg/foo ./pkg/bar -e .json -e .yml

Restart application if it exits unexpectedly:

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

About

Watch for file changes and reload Go binaries and tests in your development machine.

Resources

License

Stars

Watchers

Forks