SKILL.md(唯一来源 = sap-cli/skill-src/SKILL.md.tmpl):
- 本仓 SKILL.md 自此为构建产物,勿手工编辑;手改后再构建会被漂移护栏拦下
- 并入模板独有内容:调用方式节 + 补齐 parser 真实命令(clone/enhancement/
history/unit-test/unlock/transport create,原表只 9 个,实际 31 个)
- 版本号改为 {{VERSION}} 注入(原字面量停在 v2.2.1/v2.3.0,与工具实际版本脱节)
- 修 1 处违反铁律 5 的示例(--path ./src → ./src/TMP/class/)
assets/(工具代码,此前严重过时):
- 9 个文件与源码不一致,scanner.py 尤甚:3818B → 6664B
- 修复前从本仓装出的工具**不支持三层 src 结构**,铁律 5 实际跑不通
- transport.py 反向漂移(分发版多 transport create,源码无)已随源码回迁对齐
VERSION 2.5.1;references/ 三份规则与源码一致(无差异)
110 lines
2.0 KiB
Python
110 lines
2.0 KiB
Python
"""sapcli 命令模块包。
|
|
|
|
将原 commands.py 按功能拆分为多个子模块,保持统一的导出接口。
|
|
"""
|
|
from sapcli.commands.crud import (
|
|
cmd_create,
|
|
cmd_delete,
|
|
cmd_download,
|
|
cmd_info,
|
|
cmd_sync,
|
|
cmd_unlock,
|
|
)
|
|
from sapcli.commands.batch import (
|
|
cmd_init,
|
|
cmd_refresh,
|
|
cmd_sync_all,
|
|
)
|
|
from sapcli.commands.config_cmd import (
|
|
cmd_config,
|
|
)
|
|
from sapcli.commands.search import (
|
|
cmd_list,
|
|
cmd_whereused,
|
|
cmd_search,
|
|
)
|
|
from sapcli.commands.transport import (
|
|
cmd_transport,
|
|
)
|
|
from sapcli.commands.quality import (
|
|
cmd_check,
|
|
cmd_format,
|
|
)
|
|
from sapcli.commands.diff_cmd import (
|
|
cmd_diff,
|
|
)
|
|
from sapcli.commands.package_cmd import (
|
|
cmd_package,
|
|
)
|
|
from sapcli.commands.cds import (
|
|
cmd_cds,
|
|
)
|
|
from sapcli.commands.analyze import (
|
|
cmd_analyze,
|
|
)
|
|
from sapcli.commands.scaffold import (
|
|
cmd_scaffold,
|
|
)
|
|
from sapcli.commands.ddl_query import (
|
|
cmd_show_table,
|
|
cmd_read_table,
|
|
)
|
|
from sapcli.commands.program_run import (
|
|
cmd_run_program,
|
|
)
|
|
from sapcli.commands.activate import (
|
|
cmd_activate,
|
|
)
|
|
from sapcli.commands.upload import (
|
|
cmd_upload,
|
|
)
|
|
from sapcli.commands.syntax_check import (
|
|
cmd_syntax_check,
|
|
)
|
|
from sapcli.commands.unit_test import (
|
|
cmd_unit_test,
|
|
)
|
|
from sapcli.commands.history import (
|
|
cmd_history,
|
|
)
|
|
from sapcli.commands.clone import (
|
|
cmd_clone,
|
|
)
|
|
from sapcli.commands.enhancement import (
|
|
cmd_enhancement,
|
|
)
|
|
|
|
__all__ = [
|
|
"cmd_create",
|
|
"cmd_delete",
|
|
"cmd_unlock",
|
|
"cmd_download",
|
|
"cmd_info",
|
|
"cmd_init",
|
|
"cmd_refresh",
|
|
"cmd_sync",
|
|
"cmd_sync_all",
|
|
"cmd_config",
|
|
"cmd_list",
|
|
"cmd_whereused",
|
|
"cmd_search",
|
|
"cmd_transport",
|
|
"cmd_check",
|
|
"cmd_format",
|
|
"cmd_diff",
|
|
"cmd_package",
|
|
"cmd_cds",
|
|
"cmd_analyze",
|
|
"cmd_scaffold",
|
|
"cmd_show_table",
|
|
"cmd_read_table",
|
|
"cmd_run_program",
|
|
"cmd_activate",
|
|
"cmd_upload",
|
|
"cmd_syntax_check",
|
|
"cmd_unit_test",
|
|
"cmd_history",
|
|
"cmd_clone",
|
|
"cmd_enhancement",
|
|
]
|