pub struct CliArgs {Show 22 fields
pub print: bool,
pub json: bool,
pub rpc: bool,
pub cwd: Option<PathBuf>,
pub provider: Option<String>,
pub model: Option<String>,
pub reasoning_effort: Option<ReasoningEffort>,
pub api_key: Option<ApiKey>,
pub profile: String,
pub tools: Vec<String>,
pub context_files: Vec<String>,
pub session: Option<String>,
pub new_session: bool,
pub continue_session: bool,
pub no_session: bool,
pub config_dir: Option<PathBuf>,
pub state_dir: Option<PathBuf>,
pub data_dir: Option<PathBuf>,
pub session_db: Option<PathBuf>,
pub trust: TrustArg,
pub verbose: u8,
pub prompt: Vec<String>,
}Expand description
Shared command-line contract for the Coding CLI.
Fields§
§print: boolRun one script-safe prompt and print only the final assistant text.
json: boolStream one mode header and canonical event envelope per JSON/LF line.
rpc: boolRun the strict bounded LF-delimited JSON/RPC process interface.
cwd: Option<PathBuf>Workspace directory (defaults to the process current directory).
provider: Option<String>Provider selector.
model: Option<String>Model selector.
reasoning_effort: Option<ReasoningEffort>Invocation-local provider-neutral reasoning effort.
api_key: Option<ApiKey>Invocation-local provider API key override.
profile: StringProduct profile selector.
tools: Vec<String>Active tools, as comma-separated names. Repeatable.
context_files: Vec<String>Additional workspace-relative context file. Repeatable.
session: Option<String>Open one durable session ID.
new_session: boolForce a new durable session.
continue_session: boolContinue the most recently updated durable session.
no_session: boolDo not persist this invocation’s session.
config_dir: Option<PathBuf>Absolute application configuration directory.
state_dir: Option<PathBuf>Absolute durable state directory.
data_dir: Option<PathBuf>Absolute declarative resource directory.
session_db: Option<PathBuf>Explicit SQLite path; relative values are resolved beneath state-dir.
trust: TrustArgProject-local configuration/resource trust behavior.
verbose: u8Increase diagnostic verbosity (stdout remains machine-safe in headless modes).
prompt: Vec<String>Initial prompt text; values beginning with @ load a workspace-relative file.
Implementations§
Source§impl CliArgs
impl CliArgs
Sourcepub fn session_selection(&self) -> Result<SessionSelection, CliFailure>
pub fn session_selection(&self) -> Result<SessionSelection, CliFailure>
Resolves and validates the requested session behavior.
§Errors
Rejects malformed explicit session IDs.
Sourcepub fn profile_id(&self) -> Result<ProfileId, CliFailure>
pub fn profile_id(&self) -> Result<ProfileId, CliFailure>
Trait Implementations§
Source§impl Args for CliArgs
impl Args for CliArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for CliArgs
impl CommandFactory for CliArgs
Source§impl FromArgMatches for CliArgs
impl FromArgMatches for CliArgs
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>
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>
ArgMatches to self.Source§impl Parser for CliArgs
impl Parser for CliArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, 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 CliArgs
impl RefUnwindSafe for CliArgs
impl Send for CliArgs
impl Sync for CliArgs
impl Unpin for CliArgs
impl UnsafeUnpin for CliArgs
impl UnwindSafe for CliArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more