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:
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.4.2.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file watch-fs-1.4.2.tar.gz
.
File metadata
- Download URL: watch-fs-1.4.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a90a2097a676d8ac9a6510fbd510645f5b1eea1f2b851ec0aa6b075d1b76b80 |
|
MD5 | 9fefbf077bc342eba84f1053f2a3b0df |
|
BLAKE2b-256 | c799678151a99e0b5d0fdda781c82bd8fdbc54fc0e7c06eaf2ad6bef891c3399 |
File details
Details for the file watch_fs-1.4.2-py2.py3-none-any.whl
.
File metadata
- Download URL: watch_fs-1.4.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4bae337f989784657af55f7cea40de9ff989c71c986be0f33e2d82903587e16 |
|
MD5 | ae7c45205fac3d40460d83fcdda00dc5 |
|
BLAKE2b-256 | c081a80f39981e1db4bc26e4ed1a379bc716b233ca1ddc02b1d4cc16dc8b82e6 |