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
liverun -f deck.json deck.csv -c "decksmith build" -p 1.0 -v
Run the decksmith build shell command whenever any of the two files changes, check every second, be verbose.
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.1.tar.gz
(6.2 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.1.tar.gz.
File metadata
- Download URL: liverun-0.1.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66a1d786e5c9d38cfcb708124721d8126107295a29a151066fd8121159a3066e
|
|
| MD5 |
94e06b465db5c888d9303ec21d238350
|
|
| BLAKE2b-256 |
2fe0fb983d74e195234096015b064c24a135e4757e85a250f2630e75d90849ff
|
File details
Details for the file liverun-0.1.1-py3-none-any.whl.
File metadata
- Download URL: liverun-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e98c7a3dc1b44fcbec358bfa6d26129dcddca111d36968d73287fe23a3f35e6
|
|
| MD5 |
7744b6b614e950bcc47f48212e743f33
|
|
| BLAKE2b-256 |
3f6e7a943189fbea68a87feb865bfbd1bfe92aeafb6f70a5ff44531ee0536a68
|