feat: 同步 LightCore 应用后台 CLI

This commit is contained in:
2026-11-20 04:02:32 +08:00
parent 3eb720cfbd
commit c19c26ec2c
12 changed files with 5477 additions and 45 deletions
+4 -1
View File
@@ -3,7 +3,7 @@ from pathlib import Path
import subprocess
import sys
from . import api, media, media_commands, system_commands
from . import api, application_commands, media, media_commands, system_commands
from .system_client import SystemClient
from .transport import Client, ClientError, compact
@@ -56,6 +56,9 @@ def parser():
media_commands.add_commands(commands, media.add_file_commands(commands))
system = apps.add_parser("system", help="System 后台操作")
system_commands.add_commands(app_options(system, "system"))
for name, (description, _) in application_commands.APPLICATIONS.items():
app = apps.add_parser(name, help=description)
application_commands.add_commands(app_options(app, name), name)
return root