https://github.com/v2e4lisp/ift
watch dir and run commands when a file changed
https://github.com/v2e4lisp/ift
Last synced: 8 months ago
JSON representation
watch dir and run commands when a file changed
- Host: GitHub
- URL: https://github.com/v2e4lisp/ift
- Owner: v2e4lisp
- Created: 2015-04-28T17:40:17.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-10T14:57:21.000Z (almost 11 years ago)
- Last Synced: 2025-03-05T15:24:44.535Z (over 1 year ago)
- Language: Go
- Size: 148 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Usage
```
Usage:
ift [-d dir] [-ignorefile path] [-n interval] [-p patterns] [-wait] [-hidden] command
Options:
-d=".": Watch directory
-hidden=false: Watch hidden file
-ignorefile=".iftignore": contains file patterns to ignore. ift use these patterns to determine which files to ignore. If ignorefile is not specified, ift will try to load .iftignore file under the watch directory. You can also specify patterns using -p option.
-n=2s: Interval between command execution
-p="": Specify file name patterns to ignore. Multiple patterns should be seperated by comma. If pattern is not specified, all files in the dir will be watched(except hidden files). You can also use ignore file to specify patterns.
-wait=false: Wait for last command to finish.
```