Release 0.3.4 with external processing indexing.
Add virtual baseconf support for external data processors so reindex can discover and index them alongside regular src-based configurations, and update docs to use generic examples without workspace-specific names.
This commit is contained in:
+6
-5
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Переиндексация метаданных и модулей конфигураций 1С → cache/1c_meta/index.sqlite.
|
||||
"""Переиндексация метаданных и модулей 1С (конфигурации + внешние обработки) → cache/1c_meta/index.sqlite.
|
||||
|
||||
Параметры:
|
||||
--config, -c файл настроек утилиты (YAML)
|
||||
--baseconf, -b какие выгрузки 1С индексировать (имя каталога с src/)
|
||||
--baseconf, -b какие источники 1С индексировать (каталог с src/ или virtual external)
|
||||
|
||||
Примеры:
|
||||
|
||||
@@ -90,7 +90,8 @@ def cmd_reindex(args: argparse.Namespace) -> int:
|
||||
configs = _select_configs_for_reindex(args, root)
|
||||
if not configs:
|
||||
print(
|
||||
"Нет конфигураций для индексации (нужна папка <name>/src/).\n"
|
||||
"Нет источников для индексации (нужна папка <name>/src/ "
|
||||
"или внешняя обработка <dir>/<name>.xml + <dir>/<name>/).\n"
|
||||
"Укажите -b <имя-выгрузки> или проверьте: python index_1c.py list",
|
||||
file=sys.stderr,
|
||||
)
|
||||
@@ -235,10 +236,10 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
|
||||
lc = sub.add_parser(
|
||||
"list",
|
||||
help="Выгрузки в репозитории и в индексе",
|
||||
help="Источники в репозитории и в индексе",
|
||||
parents=[tool_parent],
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||
description="Выгрузки 1С с src/ в репозитории и что уже в index.sqlite.",
|
||||
description="Источники 1С в репозитории (src/ и external) и что уже в index.sqlite.",
|
||||
)
|
||||
lc.set_defaults(func=cmd_list_configs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user