watch
Slug Watch — file watcher and command runner
Monitors directories for file changes and automatically reruns a command when changes are detected. Useful for development workflows where you want to automatically rebuild, test, or restart your application when source files are modified.
Usage:
slug watch [options] <cmd> [args...]
Options:
-h, --helpshow this screen-v, --versionshow version--extsfile extensions to monitor, may be passed multiple times (default: .slug .toml)--rootsroot directories to monitor, may be passed multiple times (default: .)--clearclear the terminal on restart (default: false)--showTimeshow execution time of the command (default: true)--pollMshow often to check for file changes in ms (default: 200)--debounceMsdebounce window for file change events in ms (default: 150)