Skip to content

Commit

Permalink
Document how to use watchexec to re-run recipes when files change (#2036
Browse files Browse the repository at this point in the history
)
  • Loading branch information
casey authored May 14, 2024
1 parent ad212c7 commit ea141a6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ea141a6

Please sign in to comment.