feat: sap-cli skill v2.2.0 — upload + syntax-check commands
This commit is contained in:
@@ -35,6 +35,8 @@ from sapcli.commands import (
|
||||
cmd_read_table,
|
||||
cmd_run_program,
|
||||
cmd_activate,
|
||||
cmd_upload,
|
||||
cmd_syntax_check,
|
||||
)
|
||||
from sapcli.auth import cmd_auth_login, cmd_auth_logout, cmd_auth_status
|
||||
from sapcli.exceptions import SapCliError, ConfigError
|
||||
@@ -134,6 +136,8 @@ def main() -> None:
|
||||
"check": cmd_check,
|
||||
"format": cmd_format,
|
||||
"activate": cmd_activate,
|
||||
"upload": cmd_upload,
|
||||
"syntax-check": cmd_syntax_check,
|
||||
"diff": cmd_diff,
|
||||
"package": cmd_package,
|
||||
"cds": cmd_cds,
|
||||
|
||||
@@ -178,6 +178,18 @@ CDS View:
|
||||
act_parser.add_argument("--types", default=None, help="逗号分隔的多个对象类型(批量模式,与 --names 一一对应)")
|
||||
act_parser.add_argument("--corr_nr", default=None, help="传输请求编号")
|
||||
|
||||
# ── upload (仅上传源码,不检查不激活) ──
|
||||
upload_parser = subparsers.add_parser("upload", help="上传源代码到 SAP(不检查不激活)")
|
||||
upload_parser.add_argument("--name", required=True, help="对象名称 (function 类型用'组名/模块名')")
|
||||
upload_parser.add_argument("--type", required=True, choices=type_choices, help="对象类型")
|
||||
upload_parser.add_argument("--path", required=True, help="本地源代码文件路径 (.abap)")
|
||||
upload_parser.add_argument("--corr_nr", default=None, help="传输请求编号")
|
||||
|
||||
# ── syntax-check (远程对象语法检查,不上传不激活) ──
|
||||
sc_parser = subparsers.add_parser("syntax-check", help="语法检查(远程对象,不上传不激活)")
|
||||
sc_parser.add_argument("--name", required=True, help="对象名称")
|
||||
sc_parser.add_argument("--type", required=True, choices=type_choices, help="对象类型")
|
||||
|
||||
# ── diff (代码差异对比) ──
|
||||
diff_parser = subparsers.add_parser("diff", help="本地 vs SAP 代码差异对比")
|
||||
diff_parser.add_argument("--name", required=True, help="对象名称")
|
||||
|
||||
Reference in New Issue
Block a user