跳转到主要内容

文件更改时运行命令

项目描述

watch-fs on PyPI watch-fs on PyPI Travis-CI build status for watch-fs GitHub issues for watch-fs

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 在其自己的虚拟环境中安装 watch-fs,并将其链接到 ~/.local/bin

pipsi install watch-fs

或者,您可以使用 pip 全局安装

pip install watch-fs

许可证

watch-fs 在MIT许可证下发布。

作者

watch-fsSam Clements 编写。

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

watch-fs-1.5.0.tar.gz (3.3 kB 查看哈希值)

上传时间 源代码

构建分发

watch_fs-1.5.0-py2.py3-none-any.whl (5.4 kB 查看哈希值)

上传时间 Python 2 Python 3

由以下支持