reloader

module
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2020 License: MIT

README

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

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL