1. Removed unwanted git rev in "watchexec/install.sh"
[webi-installers/.git] / watchexec / README.md
1 ---
2 title: watchexec
3 homepage: https://github.com/watchexec/watchexec
4 tagline: |
5   watchexec is a simple, standalone tool that watches a path and runs a command whenever it detects modifications.
6 ---
7
8 ### Updating `watchexec`
9
10 `webi watchexec@stable`
11
12 Use the `@beta` tag for pre-releases.
13
14 ## Cheat Sheet
15
16 Watch all JavaScript, CSS and HTML files in the current directory and all
17 subdirectories for changes, running `make` when a change is detected:
18
19 ```bash
20 watchexec --exts js,css,html make
21 ```
22
23 Call `make test` when any file changes in this directory/subdirectory, except
24 for everything below `target`:
25
26 ```bash
27 watchexec -i target make test
28 ```
29
30 Call `ls -la` when any file changes in this directory/subdirectory:
31
32 ```bash
33 watchexec -- ls -la
34 ```