Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

watchexec

Simple, standalone tool that watches a path and runs a command whenever it detects modifications.

Examples

# Watch: all `.js`, `.css`, `.html` files
# Run: `make` command
watchexec  -e js,css,html  make

# Watch: all files
# Run: `cargo run --release` command
# Restart: kill existing process
watchexec --restart  cargo run --release