A simple CLI tool to run commands on file changes.
Project description
liverun
A simple CLI tool to run commands on file changes.
Installation
pip install liverun
Usage
usage: liverun [-h] -f FILES [FILES ...] (-c COMMAND | -x EXEC_ARGV [EXEC_ARGV ...]) [-p POLL_INTERVAL] [--no-initial-run] [-v]
A simple CLI tool to run commands on file changes.
options:
-h, --help show this help message and exit
-f FILES [FILES ...], --files FILES [FILES ...]
One or more file paths to watch for changes.
-c COMMAND, --command COMMAND
Shell command to execute when a change is detected (runs in the platform shell).
-x EXEC_ARGV [EXEC_ARGV ...], --exec EXEC_ARGV [EXEC_ARGV ...]
Execute the given program/args directly (no shell). Example: --exec python -m pytest -q
-p POLL_INTERVAL, --poll-interval POLL_INTERVAL
Polling interval in seconds (default: 1.0).
--no-initial-run Do not run the action immediately at startup (default is to run once).
-v, --verbose Enable info-level logging output.
Example
Run a shell command when Python files change:
liverun -f main.py -c "echo changed at %TIME%" -p 1.0 -v
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
liverun-0.1.0.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file liverun-0.1.0.tar.gz.
File metadata
- Download URL: liverun-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fef4abe3f43cd5d89d29d6a7bddb38d7b8b98cc1ec0c69fea2220c8f577928d
|
|
| MD5 |
93cf6237faac007951dd7ca199c78c17
|
|
| BLAKE2b-256 |
36afff739b383f1909f1d8c2001717a9e54d9ecdfd7c734691d14bbb34f2dcb4
|
File details
Details for the file liverun-0.1.0-py3-none-any.whl.
File metadata
- Download URL: liverun-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74499950fa82009472f1c72b4d4cbaf0e41cb2d8d52c9cfd8e5b2ae1ebc9f2ed
|
|
| MD5 |
fee9b890b1d48b28136358461e03f74b
|
|
| BLAKE2b-256 |
356dc8f3e8a71a67c65f1fa62ce9e49f7f47b594ef4354543eae4669b2bb5888
|