chore: auto release commit (2026-09-15 10:19:55)
All checks were successful
技能自动化发布 / release (push) Successful in 18s
All checks were successful
技能自动化发布 / release (push) Successful in 18s
This commit is contained in:
@@ -141,8 +141,8 @@ def _handle_list_holidays(args: argparse.Namespace) -> int:
|
||||
|
||||
def _handle_extract_invoices(args: argparse.Namespace) -> int:
|
||||
return cmd_extract_invoices(
|
||||
username=str(args.username or "").strip(),
|
||||
password=str(args.password or "").strip(),
|
||||
username="",
|
||||
password="",
|
||||
profile_dir=str(args.profile_dir or "").strip(),
|
||||
headless=bool(args.headless),
|
||||
detail_mode=bool(args.detail_mode),
|
||||
@@ -151,8 +151,8 @@ def _handle_extract_invoices(args: argparse.Namespace) -> int:
|
||||
|
||||
def _handle_test_rpa_connection(args: argparse.Namespace) -> int:
|
||||
return cmd_test_rpa_connection(
|
||||
username=str(args.username or "").strip(),
|
||||
password=str(args.password or "").strip(),
|
||||
username="",
|
||||
password="",
|
||||
profile_dir=str(args.profile_dir or "").strip(),
|
||||
)
|
||||
|
||||
@@ -192,9 +192,9 @@ def _print_full_usage() -> None:
|
||||
print(" python main.py list-holidays [--year YYYY]")
|
||||
print(" python main.py stats")
|
||||
print(" python main.py run [target [input_id]] [-t target] [-i input_id]")
|
||||
print(" python main.py extract-invoices --username U --password P --profile-dir DIR")
|
||||
print(" python main.py extract-invoices --profile-dir DIR")
|
||||
print(" [--headless] [--detail-mode]")
|
||||
print(" python main.py test-rpa-connection --username U --password P --profile-dir DIR")
|
||||
print(" python main.py test-rpa-connection --profile-dir DIR")
|
||||
print(" python main.py health")
|
||||
print(" python main.py config-path")
|
||||
print(" python main.py version")
|
||||
@@ -288,17 +288,13 @@ def build_parser() -> ZhArgumentParser:
|
||||
sp.set_defaults(handler=lambda _a: cmd_stats())
|
||||
|
||||
# RPA commands
|
||||
sp = sub.add_parser("extract-invoices", help="从网站提取发票信息")
|
||||
sp.add_argument("--username", required=True, metavar="用户名")
|
||||
sp.add_argument("--password", required=True, metavar="密码")
|
||||
sp = sub.add_parser("extract-invoices", help="从网站提取发票信息(sandbox 需手动登录)")
|
||||
sp.add_argument("--profile-dir", required=True, metavar="浏览器配置目录", dest="profile_dir")
|
||||
sp.add_argument("--headless", action="store_true", help="无头模式(生产不建议)")
|
||||
sp.add_argument("--detail-mode", action="store_true", help="提取详细信息", dest="detail_mode")
|
||||
sp.set_defaults(handler=_handle_extract_invoices)
|
||||
|
||||
sp = sub.add_parser("test-rpa-connection", help="测试RPA连接和登录")
|
||||
sp.add_argument("--username", required=True, metavar="用户名")
|
||||
sp.add_argument("--password", required=True, metavar="密码")
|
||||
sp = sub.add_parser("test-rpa-connection", help="测试RPA连接(sandbox 需手动登录)")
|
||||
sp.add_argument("--profile-dir", required=True, metavar="浏览器配置目录", dest="profile_dir")
|
||||
sp.set_defaults(handler=_handle_test_rpa_connection)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user