cespare/reflex 基于golang 编写的文件变动监听&&任务执行

cespare/reflex 是基于golang 开发的文件变动监听&&任务执行工具,功能还是比较强大的,但是
只支持linux 以及macos

安装

go get github.com/cespare/reflex

参考使用

 
reflex -r '.txt$' echo {}
reflex -g '*.c' make
reflex -r '.java$' -s -- sh -c 'make && java bin/Server'

参考资料

https://github.com/cespare/reflex

原文地址:https://www.cnblogs.com/rongfengliang/p/14197063.html