ricecoder_cli/commands/
mod.rs

1// Command handlers for ricecoder CLI
2
3pub mod chat;
4pub mod config;
5pub mod custom;
6pub mod custom_storage;
7pub mod gen;
8pub mod help;
9pub mod hooks;
10pub mod init;
11pub mod lsp;
12pub mod refactor;
13pub mod review;
14pub mod sessions;
15pub mod tui;
16pub mod version;
17
18pub use chat::ChatCommand;
19pub use config::ConfigCommand;
20pub use custom::{CustomAction, CustomCommandHandler};
21pub use gen::GenCommand;
22pub use help::HelpCommand;
23pub use hooks::{HooksAction, HooksCommand};
24pub use init::InitCommand;
25pub use lsp::LspCommand;
26pub use refactor::RefactorCommand;
27pub use review::ReviewCommand;
28pub use sessions::{SessionsAction, SessionsCommand};
29pub use tui::TuiCommand;
30pub use version::VersionCommand;
31
32use crate::error::CliResult;
33
34/// Trait for command handlers
35pub trait Command: Send + Sync {
36    /// Execute the command
37    fn execute(&self) -> CliResult<()>;
38}