objectiveai_sdk/cli/command/command_request.rs
1/// Convert a typed CLI request struct into the argv tail the cli binary
2/// should be invoked with. Implementors are the per-leaf request shapes
3/// in the surrounding tree (e.g. `agents::spawn::Request`) and emit the
4/// flags + positional args their leaf command expects — without the
5/// binary name. Callers prepend whatever launcher prefix they need
6/// (`["objectiveai-cli"]`, `["objectiveai-cli", "instance"]`, …).
7pub trait CommandRequest {
8 fn into_command(&self) -> Vec<String>;
9}