Reflex for Quick Filewatching Commands

1
go install github.com/cespare/reflex@latest

Then you can run a command like:

1
reflex -r 'nginx.conf' -- curl -v -L http://127.0.0.1:8080 2>&1 | grep -i "^< location:\|HTTP/1.1"

You should see triggered output from the command whenever the file is saved.

Nice work @cespare. Found this pretty useful to speed up testing cycles with some cli tools.

Follow: Caleb and twitter for more cool Go magic.


Webmentions

(No webmentions yet.)