chore: sync skill to v2.2.1
- NW 7.40 E2E-verified compatibility matrix in SKILL.md - DDIC fixes: include namespace, tabletype exists check, DDIC delete lock Accept - New commands: clone, enhancement, history, unit-test - 665 tests, 96% coverage
This commit is contained in:
@@ -37,6 +37,10 @@ from sapcli.commands import (
|
||||
cmd_activate,
|
||||
cmd_upload,
|
||||
cmd_syntax_check,
|
||||
cmd_unit_test,
|
||||
cmd_history,
|
||||
cmd_clone,
|
||||
cmd_enhancement,
|
||||
)
|
||||
from sapcli.auth import cmd_auth_login, cmd_auth_logout, cmd_auth_status
|
||||
from sapcli.exceptions import SapCliError, ConfigError
|
||||
@@ -101,6 +105,15 @@ def main() -> None:
|
||||
cmd_auth_status(args)
|
||||
return
|
||||
|
||||
# clone 自行按 --from/--to profile 构建源/目标连接,跳过默认登录
|
||||
if args.command == "clone":
|
||||
try:
|
||||
cmd_clone(args, None)
|
||||
except SapCliError as e:
|
||||
print(f"\n ✗ {e}")
|
||||
sys.exit(1)
|
||||
return
|
||||
|
||||
# 加载配置
|
||||
try:
|
||||
sap_cfg, loaded_from = load_config(args.config, profile=getattr(args, "profile", None))
|
||||
@@ -146,6 +159,9 @@ def main() -> None:
|
||||
"show-table": cmd_show_table,
|
||||
"read-table": cmd_read_table,
|
||||
"run-program": cmd_run_program,
|
||||
"unit-test": cmd_unit_test,
|
||||
"history": cmd_history,
|
||||
"enhancement": cmd_enhancement,
|
||||
}
|
||||
|
||||
# 批量 sync 参数校验
|
||||
|
||||
Reference in New Issue
Block a user