| 1 | //! Utility command area: attachments, background tasks, jobs, MCP, and |
| 2 | //! network inspection. |
| 3 | |
| 4 | mod attachment; |
| 5 | mod automation; |
| 6 | mod jobs; |
| 7 | mod mcp; |
| 8 | mod network; |
| 9 | mod task; |
| 10 | |
| 11 | use crate::commands::traits::{Command, CommandGroup, FunctionCommand, RegisterCommand}; |
| 12 | |
| 13 | pub struct UtilityCommands; |
| 14 | |
| 15 | impl CommandGroup for UtilityCommands { |
| 16 | fn commands(&self) -> &'static [Box<dyn Command>] { |
| 17 | cached_command_list!(vec![ |
| 18 | Box::new(FunctionCommand::new( |
| 19 | attachment::AttachCmd::info(), |
| 20 | attachment::AttachCmd::execute, |
| 21 | )), |
| 22 | Box::new(FunctionCommand::new( |
| 23 | automation::AutomationCmd::info(), |
| 24 | automation::AutomationCmd::execute, |
| 25 | )), |
| 26 | Box::new(FunctionCommand::new( |
| 27 | task::TaskCmd::info(), |
| 28 | task::TaskCmd::execute, |
| 29 | )), |
| 30 | Box::new(FunctionCommand::new( |
| 31 | jobs::JobsCmd::info(), |
| 32 | jobs::JobsCmd::execute, |
| 33 | )), |
| 34 | Box::new(FunctionCommand::new( |
| 35 | mcp::McpCmd::info(), |
| 36 | mcp::McpCmd::execute, |
| 37 | )), |
| 38 | Box::new(FunctionCommand::new( |
| 39 | network::NetworkCmd::info(), |
| 40 | network::NetworkCmd::execute, |
| 41 | )), |
| 42 | ]) |
| 43 | } |
| 44 | } |
| 45 |