pub struct CliConfig {
pub backend: String,
pub command: Option<String>,
pub prompt_mode: String,
pub default_mode: String,
pub idle_timeout_secs: u32,
pub args: Vec<String>,
pub prompt_flag: Option<String>,
}Expand description
CLI backend configuration.
Fields§
§backend: StringBackend to use: “claude”, “kiro”, “gemini”, “codex”, “amp”, “pi”, or “custom”.
command: Option<String>Command override. Required for “custom” backend. For named backends, overrides the default binary path.
prompt_mode: StringHow to pass prompts: “arg” or “stdin”.
default_mode: StringExecution mode when –interactive not specified. Values: “autonomous” (default), “interactive”
idle_timeout_secs: u32Idle timeout in seconds for interactive mode. Process is terminated after this many seconds of inactivity (no output AND no user input). Set to 0 to disable idle timeout.
args: Vec<String>Custom arguments to pass to the CLI command (for backend: “custom”). These are inserted before the prompt argument.
prompt_flag: Option<String>Custom prompt flag for arg mode (for backend: “custom”). If None, defaults to “-p” for arg mode.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CliConfig
impl<'de> Deserialize<'de> for CliConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CliConfig
impl RefUnwindSafe for CliConfig
impl Send for CliConfig
impl Sync for CliConfig
impl Unpin for CliConfig
impl UnsafeUnpin for CliConfig
impl UnwindSafe for CliConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more