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"
}
ChangeLog
0.0.31
add ignore_pattern
add event IN_MOVED_TO, IN_MOVED_FROM
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.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a611b764d0b9a5c4087b8cba92e86ff423a7ec0d30f212ba30d3d9e63e6d42bd |
|
MD5 | 99f690f24e3c129c4a1087de16c5c9a5 |
|
BLAKE2b-256 | 685eb5a77d2a477bcb81dceb61bd001479e114199676a63967d686bf0234aaa1 |