pub trait CommandRequest {
// Required method
fn into_command(&self) -> Vec<String>;
}Expand description
Convert a typed CLI request struct into the argv tail the cli binary
should be invoked with. Implementors are the per-leaf request shapes
in the surrounding tree (e.g. agents::spawn::Request) and emit the
flags + positional args their leaf command expects — without the
binary name. Callers prepend whatever launcher prefix they need
(["objectiveai-cli"], ["objectiveai-cli", "instance"], …).
Required Methods§
fn into_command(&self) -> Vec<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".