tools like vscode file-watcher but for command only
Project description
something like File-Watcher for vscode
Usage
cqh_file_watcher -c ***.conf
conf example
use pattern
{"command_list":[
{
"pattern": "*.py",
"command": "sudo supervisorctl restart redis"
}
],
"directory": "/home/vagrant/code/code1"
}
no pattern
{"command_list":[
{
"command": "echo things changed"
}
],
"directory": "/home/vagrant/code/code1"
}
directory for command
{"command_list":[
{
"pattern": "*.py",
"command": "sudo supervisorctl restart redis"
"directory": "/home/vagrant"
}
]
"directory": "/home/vagrant/code/code1"
}
add ignore pattern for one
{"command_list":[
{
"pattern": "*.py",
"ignore_pattern": ["_build/.*"],
"command": "sudo supervisorctl restart redis"
"directory": "/home/vagrant"
}
]
"directory": "/home/vagrant/code/code1"
}
add ignore pattern for multi
{"command_list":[
{
"pattern": "*.py",
"ignore_pattern": ["_build/.*" , "_download/.*", "^css/.*", "^_static/.*"],
"command": "sudo supervisorctl restart redis"
"directory": "/home/vagrant"
}
]
"directory": "/home/vagrant/code/code1"
}
use DIRECTORY env
{"command_list":[
{
"pattern": "*.py",
"ignore_pattern": ["_build/.*" , "_download/.*", "^css/.*", "^_static/.*"],
"command": "sudo supervisorctl restart redis"
"directory": "/home/vagrant"
}
]
"directory": "${DIRECTORY}"
}
some problems
sre_constants.error: nothing to repeat at position 0
config
{"command_list":[
{
"pattern": "*\\.py",
"ignore_pattern": ["_build/.*" , "_download/.*", "^css/.*", "^_static/.*"],
"command": "${DIRECTORY}/venv/bin/invoke gpush"
}
],
"directory": "${DIRECTORY}"
}
replace pattern: "*\\.py" with patter: ".*\\.py"
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
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 cqh_file_watcher-0.0.41.tar.gz.
File metadata
- Download URL: cqh_file_watcher-0.0.41.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1c2fac5d464adbf647aaf1b41325af4b5fabfb2b46978e916bc384e4ac5f711
|
|
| MD5 |
6424f1709913e8b30f234b6e16da6aa3
|
|
| BLAKE2b-256 |
4a48f5b8759a1925cfec7c7261a352cb2ceecd77fb443335914b07959bd9f95d
|
File details
Details for the file cqh_file_watcher-0.0.41-py3-none-any.whl.
File metadata
- Download URL: cqh_file_watcher-0.0.41-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a1627e94958c696717041c96a2c79baa068142bfee7e9f71eabe81313030fd4
|
|
| MD5 |
4db6935adf576e4ddb8b9476aca95b21
|
|
| BLAKE2b-256 |
41cc472c92349f6e34e1c8bd7c3b3b3cb86a004ab6005207d47a68dbbc2094da
|