limit_cli/tui/commands/
mod.rs1mod builtin;
6mod registry;
7mod session;
8mod share;
9
10pub use builtin::{ClearCommand, ExitCommand, HelpCommand};
11pub use registry::{Command, CommandContext, CommandRegistry, CommandResult};
12pub use session::SessionCommand;
13pub use share::ShareCommand;
14
15pub fn create_default_registry() -> CommandRegistry {
17 let mut registry = CommandRegistry::new();
18
19 registry.register(Box::new(HelpCommand));
20 registry.register(Box::new(ClearCommand));
21 registry.register(Box::new(ExitCommand));
22 registry.register(Box::new(SessionCommand::new()));
23 registry.register(Box::new(ShareCommand::new()));
24
25 registry
26}