testbox watch
and coldbox watch-reinit
. However, there is also a generic watch command that will run any arbitrary command of your choosing when a path matching your file globbing pattern is added/updated/deleted.foreach
command over each item in the watcher_added
array and then runs an echo
statement to output the name of each added path..gitignore
entries and less like bash paths. Specifically:watch /foo
will only watch files in the directory at ./foo
, but not in directories like ./bar/foo
.watch foo
will result in the entire working directory being watched, but only files matching the glob **foo
will be processed.paths
- Comma-delimited list of file globbing paths to watch relative to the working directory, defaults to **excludePaths
- Comma-delimited list of file globbing paths to exclude relative to the working directory.command
- The command to run when the watcher firesdelay
- How may milliseconds to wait before polling for changes, defaults to 500 msdirectory
- Working directory to start watcher inverbose
- Output details about the files that changed