cqh-file-watcher-0.0.41
توضیحات
tools like vscode file-watcher but for command only
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | cqh-file-watcher-0.0.41 |
| نام | cqh-file-watcher |
| نسخه کتابخانه | 0.0.41 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | chenqinghe |
| ایمیل نویسنده | 1832866299@qq.com |
| آدرس صفحه اصلی | https://github.com/chen19901225/cqh_file_watcher |
| آدرس اینترنتی | https://pypi.org/project/cqh-file-watcher/ |
| مجوز | - |
cqh_file_watcher
=============================================
something like `File-Watcher` for vscode
Usage
-------------------------------------------------
``cqh_file_watcher -c ***.conf``
conf example
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
use pattern
::::::::::::::::::::::::::::::::::::::::::::::::::
.. code-block::
{"command_list":[
{
"pattern": "*.py",
"command": "sudo supervisorctl restart redis"
}
],
"directory": "/home/vagrant/code/code1"
}
no pattern
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
.. code-block::
{"command_list":[
{
"command": "echo things changed"
}
],
"directory": "/home/vagrant/code/code1"
}
directory for command
::::::::::::::::::::::::::::::::::::::::::::
.. code-block::
{"command_list":[
{
"pattern": "*.py",
"command": "sudo supervisorctl restart redis"
"directory": "/home/vagrant"
}
]
"directory": "/home/vagrant/code/code1"
}
add ignore pattern for one
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
.. code-block::
{"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
:::::::::::::::::::::::::::::::::::::::
.. code-block::
{"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
:::::::::::::::::::::::::::::::::::::::::::::::::
.. code-block::
{"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
.. code-block::
{"command_list":[
{
"pattern": "*\\.py",
"ignore_pattern": ["_build/.*" , "_download/.*", "^css/.*", "^_static/.*"],
"command": "${DIRECTORY}/venv/bin/invoke gpush"
}
],
"directory": "${DIRECTORY}"
}
replace ``pattern: "*\\.py"`` with ``patter: ".*\\.py"``
نیازمندی
| مقدار | نام |
|---|---|
| - | pyinotify |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cqh-file-watcher-0.0.41:
pip install cqh-file-watcher-0.0.41.whl
نصب پکیج tar.gz cqh-file-watcher-0.0.41:
pip install cqh-file-watcher-0.0.41.tar.gz