feat: 同步 LightCore 应用后台 CLI
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user