Reload command on file changed
Project description
=========
reloadcmd
=========
Re-executes program when files are changed, moved or deleted
Usage
=====
usage: monitor [-h] [-d DEBUG] [-p PATH] [-e [FILE_EXT [FILE_EXT ...]]] -c
COMMAND
Restarts process when any files / directory changes
optional arguments:
-h, --help show this help message and exit
-d DEBUG, --debug DEBUG
Debug mode
-p PATH, --path PATH Which directory to watch for changes
-e [FILE_EXT [FILE_EXT ...]], --extension [FILE_EXT [FILE_EXT ...]]
Which file extensions to listen for
-c COMMAND, --command COMMAND
Command to be executed
``$ reloadcmd --command "while [ 1 -eq 1 ]; do echo 2; sleep 1; done"``
Dependencies
============
* `watchdog <https://pypi.python.org/pypi/watchdog>`
* `coloredlogs <https://pypi.python.org/pypi/coloredlogs>`
reloadcmd
=========
Re-executes program when files are changed, moved or deleted
Usage
=====
usage: monitor [-h] [-d DEBUG] [-p PATH] [-e [FILE_EXT [FILE_EXT ...]]] -c
COMMAND
Restarts process when any files / directory changes
optional arguments:
-h, --help show this help message and exit
-d DEBUG, --debug DEBUG
Debug mode
-p PATH, --path PATH Which directory to watch for changes
-e [FILE_EXT [FILE_EXT ...]], --extension [FILE_EXT [FILE_EXT ...]]
Which file extensions to listen for
-c COMMAND, --command COMMAND
Command to be executed
``$ reloadcmd --command "while [ 1 -eq 1 ]; do echo 2; sleep 1; done"``
Dependencies
============
* `watchdog <https://pypi.python.org/pypi/watchdog>`
* `coloredlogs <https://pypi.python.org/pypi/coloredlogs>`
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
reloadcmd-0.9.0.tar.gz
(2.5 kB
view details)
Built Distributions
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
reloadcmd-0.9.0-py2.7.egg
(7.7 kB
view details)
File details
Details for the file reloadcmd-0.9.0.tar.gz.
File metadata
- Download URL: reloadcmd-0.9.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8646d8db0b35661ca344fdfbd927f7717d70f9caeefbf2ad77f53a3c53a123cc
|
|
| MD5 |
970fc38ffc69fc43ef0f54fc88328967
|
|
| BLAKE2b-256 |
b2f19a8b318f7cfb7de20e335be7a3e5d75448a53824bc08047ded2fea41565f
|
File details
Details for the file reloadcmd-0.9.0-py2.py3-none-any.whl.
File metadata
- Download URL: reloadcmd-0.9.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bf6623f86b7b3f55675ef0bae05a7d13767967000a89a93b91c9215913d4366
|
|
| MD5 |
0541147afca5563fdfe3cf5a6b962ea7
|
|
| BLAKE2b-256 |
64040fd803ae57eea3dd6f1df0c7f2817a77be771a9a3d15a021d863bd1ed227
|
File details
Details for the file reloadcmd-0.9.0-py2.7.egg.
File metadata
- Download URL: reloadcmd-0.9.0-py2.7.egg
- Upload date:
- Size: 7.7 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b5cebd2d07fad113beaa6081b5631c4a835e646e60d594b71b4aaef24e2bb2a
|
|
| MD5 |
a8acb02038b7c5db38a57bc6d92d03b8
|
|
| BLAKE2b-256 |
729563b86068f7d4652e6eaddfa1a02de05bc605ffe177277d1eb38dd243bd17
|