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
Close
Hashes for cqh_file_watcher-0.0.36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 390d35e089c66a6f8e29f0267b9efb60aed9d4a290a80daed8e9a9f5c24fb45d |
|
MD5 | 5982cf60b98fe208b6ecfcd37f5fe828 |
|
BLAKE2b-256 | 231c621fd33b12912c460ea76fdf51c4d58717b622a060ddeadbc04015756a5d |