28 lines
982 B
Python
28 lines
982 B
Python
"""agent 子命令组"""
|
|
|
|
import typer
|
|
from ekb_cli.commands.agent.list import cmd_list
|
|
from ekb_cli.commands.agent.detail import cmd_detail
|
|
from ekb_cli.commands.agent.logs import cmd_logs
|
|
from ekb_cli.commands.agent.update import cmd_update
|
|
from ekb_cli.commands.agent.create import cmd_create
|
|
from ekb_cli.commands.agent.copy import cmd_copy
|
|
from ekb_cli.commands.agent.rule_list import cmd_rule_list
|
|
from ekb_cli.commands.agent.rule_detail import cmd_rule_detail
|
|
from ekb_cli.commands.agent.rule_create import cmd_rule_create
|
|
|
|
from ekb_cli.commands.agent.delete import cmd_delete
|
|
|
|
app = typer.Typer(help="智能审核 Agent 管理")
|
|
|
|
app.command("list")(cmd_list)
|
|
app.command("get")(cmd_detail)
|
|
app.command("create")(cmd_create)
|
|
app.command("copy")(cmd_copy)
|
|
app.command("update")(cmd_update)
|
|
app.command("delete")(cmd_delete)
|
|
app.command("logs")(cmd_logs)
|
|
app.command("rules")(cmd_rule_list)
|
|
app.command("rule-get")(cmd_rule_detail)
|
|
app.command("rule-create")(cmd_rule_create)
|