Run commands when files change
Project description
watch-fs is a command line tool to run commands when files change.
Usage
watch-fs will watch any number of directories and files, and run a command when any of them are changed. By default, watch-fs will watch the current directory.
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
Installation
I recommend you use pipsi to install watch-fs in it’s own virtualenv and link it from ~/.local/bin:
pipsi install watch-fs
Alternatively, you can install system-wide using pip:
.. code-block:: bash
pip install watch-fs
Licence
watch-fs is licensed under the MIT Licence.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
watch-fs-1.3.0.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file watch-fs-1.3.0.tar.gz
.
File metadata
- Download URL: watch-fs-1.3.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34e9545963b65d5fc6e292b9d07d871ab6f4e026d1a3a15b492bb35ca26bfca |
|
MD5 | 361db95291ccf1be55e18a754d2ef3c0 |
|
BLAKE2b-256 | 7188769bae63fcc35a4edb082ed5a3d0572535959700e65102b8b93f7fed4eeb |
File details
Details for the file watch_fs-1.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: watch_fs-1.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e70f9cbdb67e83c42e78a9ab63c0c9276e89145f0661c6545f9a04d057d23de6 |
|
MD5 | 60c1a0f2dac404e41abfe9215f6b4f90 |
|
BLAKE2b-256 | d1ed5b367e02de32dd4d009a0a9e5589686bd482c568278eaf4d010d00272a42 |