when-changed

 ·  ☕ 1  · 👀...

介绍

安装

1
$ pip3 install https://github.com/joh/when-changed/archive/master.zip

使用

1
2
3
4
5
6
7
# 语法
when-changed [OPTION] FILE COMMAND...
when-changed [OPTION] FILE [FILE ...] -c COMMAND

# 示例
$ when-changed -r -v . python main.py
$ when-changed -r -v -1 . ./run.sh

Wanglibing
Wanglibing
Engineer,Lifelong learner