Document how to use watchexec to re-run recipes when files change (#2036)

This commit is contained in:
Casey Rodarmor 2024-05-14 16:39:16 -07:00 committed by GitHub
parent ad212c77bf
commit ea141a6891
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3047,12 +3047,19 @@ can also be used to make a `just` binary print its changelog.
Miscellanea
-----------
### Companion Tools
### Re-running recipes when files change
Tools that pair nicely with `just` include:
[`watchexec`](https://github.com/mattgreen/watchexec) can re-run any command
when files change.
- [`watchexec`](https://github.com/mattgreen/watchexec) — a simple tool that
watches a path and runs a command whenever it detects modifications.
To re-run the recipe `foo` when any file changes:
```sh
watchexec just foo
```
See `watchexec --help` for more info, including how to specify which files
should be watched for changes.
### Shell Alias