pub struct Cli {Show 14 fields
pub agent: Option<String>,
pub prompt: Vec<String>,
pub command: Option<Commands>,
pub session: Option<String>,
pub approve_all: bool,
pub approve_reads: bool,
pub deny_all: bool,
pub cwd: Option<String>,
pub format: String,
pub timeout: Option<u64>,
pub agent_override: Option<String>,
pub file: Option<String>,
pub verbose: bool,
pub no_wait: bool,
}Fields§
§agent: Option<String>Agent name (e.g. “claude”, “codex”) or raw command
prompt: Vec<String>Prompt text (implicit prompt mode)
command: Option<Commands>§session: Option<String>Session name or ID to resume
approve_all: boolAutomatically approve all tool calls
approve_reads: boolAutomatically approve read-only tool calls
deny_all: boolDeny all tool calls
cwd: Option<String>Working directory for the agent
format: StringOutput format (text, json, quiet)
timeout: Option<u64>Timeout in seconds
agent_override: Option<String>Override the agent command
file: Option<String>Read prompt from a file (use “-” for stdin)
verbose: boolEnable verbose output
no_wait: boolFire-and-forget: queue the prompt and return immediately without waiting for the result. Requires an active session (queue owner) to be running.
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
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