Document how to use watchexec to re-run recipes when files change (#2036)
This commit is contained in:
parent
ad212c77bf
commit
ea141a6891
15
README.md
15
README.md
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user