This tools is command line tool.
If save the source code, running for any command.
$gbw --command "make && make install" --dir "./"
$gbw --command "gb build && ./bin/process" --dir "./"
$ go get github.com/kazu1107/gbw
-
-command
run command -
-dir
watching directory dirpath (default "./") -
-ext
extension list (ex "png,gif") -
-help show help
-
-wf
wait first -
-debug
output debugging log -
event options
- created:
-c enabled (default)
-nc disabled - writed:
-w enabled (default)
-nw disabled - removed:
-r enabled (default)
-nr disabled - renamed:
-n enabled (default)
-nn disabled - change permission:
-p enabled
-np disabled (default)
- created:
-
&&
"cmd1 && cmd2"
if cmd1 success, run cmd2 -
||
"cmd1 || cmd2"
if cmd1 failed, run cmd2 -
;
"cmd1 ; cmd2" cmd1 run after, run cmd2
If you want complicated processing you should write a script
The following is helpful
EN: http://superuser.com/questions/830149/os-x-yosemite-too-many-files-open
JP: http://ysh.hateblo.jp/entry/2015/11/26/211134
Fundamental revision requires refurbishment of fsnotfy. (_)
-
2017.03.10 ver 0.2
add process for first run. -
2016.12.22
Created ver 0.1