Release 0.3.2: YAML config, default_baseconfs, autodiscover.
Конфиг утилиты переведён на YAML; default_baseconfs для reindex без -b; автопоиск config.local.yml/.yaml/.json; обобщённая документация. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+11
-14
@@ -2,22 +2,19 @@
|
||||
"""Запросы к единому индексу конфигураций 1С (cache/1c_meta/index.sqlite).
|
||||
|
||||
Параметры:
|
||||
--config, -c файл настроек утилиты (JSON), не конфигурация 1С
|
||||
--baseconf, -b выгрузка конфигурации 1С в репозитории (crm3-26, target, …)
|
||||
--config, -c файл настроек утилиты (YAML), не конфигурация 1С
|
||||
--baseconf, -b выгрузка конфигурации 1С в репозитории (имя каталога с src/)
|
||||
|
||||
Примеры:
|
||||
|
||||
python tools/index/query_1c.py search \"ЗаказКлиента\"
|
||||
python tools/index/query_1c.py search \"Партнер\" --type Document -b crm3-26
|
||||
python tools/index/query_1c.py show ЗаказКлиента -b target
|
||||
python tools/index/query_1c.py show Document.ЗаказКлиента -b crm3-26
|
||||
python tools/index/query_1c.py modules \"РВС_Transfer\" -b ws-rhana
|
||||
python tools/index/query_1c.py refs Catalog.Партнеры -b source
|
||||
python tools/index/query_1c.py movements ЗаказКлиента -b target
|
||||
python tools/index/query_1c.py movements AccumulationRegister.ТоварыНаСкладах -b target
|
||||
python tools/index/query_1c.py object ЗаказКлиента -b target
|
||||
python tools/index/query_1c.py object Партнер -b crm3-26 --clear
|
||||
python tools/index/query_1c.py module CommonModules/РВС_TransferAPIДокументы
|
||||
python query_1c.py search \"Contract\"
|
||||
python query_1c.py search \"Partner\" --type Document -b my-config
|
||||
python query_1c.py show Document.Contract -b main
|
||||
python query_1c.py modules \"ProcessData\" -b my-config.ext
|
||||
python query_1c.py refs Catalog.Customers -b main
|
||||
python query_1c.py movements Document.Contract -b my-config
|
||||
python query_1c.py object Contract -b my-config --clear
|
||||
python query_1c.py module CommonModules/MyModule
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -360,7 +357,7 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
epilog=(
|
||||
"Конфигурация 1С — параметр --baseconf (-b): папка выгрузки в репозитории.\n"
|
||||
"Можно указать до или после подкоманды; несколько раз или через запятую.\n"
|
||||
"Файл настроек утилиты — --config (-c): см. tools/index/config.example.json"
|
||||
"Файл настроек утилиты — --config (-c): см. config.example.yml"
|
||||
),
|
||||
)
|
||||
p.add_argument(
|
||||
|
||||
Reference in New Issue
Block a user