返回 CodeWhale
subagents.rs
根目录 / crates / tui / src / commands / groups / core / subagents.rs
1 //! `/subagents` compatibility command.
2
3 use crate::commands::traits::{CommandInfo, RegisterCommand};
4 use crate::localization::MessageId;
5 use crate::tui::app::App;
6
7 use super::CommandResult;
8
9 pub(in crate::commands) const COMMAND_INFO: CommandInfo = CommandInfo {
10 name: "subagents",
11 aliases: &["agents", "zhinengti"],
12 usage: "/subagents",
13 description_id: MessageId::CmdSubagentsDescription,
14 };
15
16 pub(in crate::commands) struct SubagentsCmd;
17
18 impl RegisterCommand for SubagentsCmd {
19 fn info() -> &'static CommandInfo {
20 &COMMAND_INFO
21 }
22
23 fn execute(app: &mut App, _arg: Option<&str>) -> CommandResult {
24 // Compatibility shortcut: Fleet is the product surface; sub-agent is
25 // role/runtime vocabulary for the same worker status projection.
26 super::core::subagents(app)
27 }
28 }
29
29 lines RUST