文件更改时运行命令
watch-fs的Python项目详细描述
watch-fs是在文件更改时运行命令的命令行工具。
用法
watch-fs将监视任意数量的目录和文件,并运行一个命令 当他们中的任何一个被改变时默认情况下,watch-fs将监视当前 目录。
Usage: watch-fs [OPTIONS] COMMAND Options: -d, --directory DIRECTORY A directory to watch for file changes - can be used multiple times, and defaults to the current directory. -c, --clear Clear the terminal before running the command -w, --wait FLOAT A minium wait before running the command again, in seconds -v, --verbose -v prints commands before running, and -vv shows debug information
安装
我建议您使用pipsi在它自己的virtualenv中安装watch-fs,并从~/.local/bin链接它:
pipsi install watch-fs
或者,可以使用pip在系统范围内安装:
pip install watch-fs
许可证
watch-fs根据麻省理工学院的许可证获得许可。