pub trait ClaudeCommand: Send + Sync {
type Output: Send;
// Required methods
fn args(&self) -> Vec<String>;
fn execute(
&self,
claude: &Claude,
) -> impl Future<Output = Result<Self::Output>> + Send;
}Expand description
Trait implemented by all claude CLI command builders.
Each command defines its own Output type and builds its argument
list via args(). Execution is dispatched through the shared Claude
client which provides binary path, environment, and timeout config.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.