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.
foreachcommand over each item in the
watcher_addedarray and then runs an
echostatement to output the name of each added path.
.gitignoreentries and less like bash paths. Specifically:
watch /foowill only watch files in the directory at
./foo, but not in directories like
watch foowill result in the entire working directory being watched, but only files matching the glob
**foowill 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 fires
delay- How may milliseconds to wait before polling for changes, defaults to 500 ms
directory- Working directory to start watcher in
verbose- Output details about the files that changed