Skip to main content

codex_wrapper/command/
mod.rs

1pub mod exec;
2pub mod login;
3pub mod mcp;
4pub mod raw;
5pub mod review;
6pub mod version;
7
8use std::future::Future;
9
10use crate::Codex;
11use crate::error::Result;
12
13/// Trait implemented by all codex CLI command builders.
14pub trait CodexCommand: Send + Sync {
15    type Output: Send;
16
17    fn args(&self) -> Vec<String>;
18
19    fn execute(&self, codex: &Codex) -> impl Future<Output = Result<Self::Output>> + Send;
20}