Go Build Watch (gbw)
This tools is command line tool.
If save the source code, running for any command.
Example
$gbw --command "make && make install" --dir "./"
$gbw --command "gb build && ./bin/process" --dir "./"
Install
$ go get github.com/kazu1107/gbw
Options
-
-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)
Support Command Syntax
-
&&
"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
Trouble Shooting
error "Too meny open files"
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. (_)
Update