pub struct CliArgs {Show 33 fields
pub provider: Option<String>,
pub model: Option<String>,
pub api_key: Option<String>,
pub system_prompt: Option<String>,
pub append_system_prompt: Vec<String>,
pub thinking: Option<ThinkingLevel>,
pub continue_session: bool,
pub resume: bool,
pub session: Option<String>,
pub fork: Option<String>,
pub session_dir: Option<PathBuf>,
pub no_session: bool,
pub models: Option<String>,
pub no_tools: bool,
pub no_builtin_tools: bool,
pub tools: Option<String>,
pub print: bool,
pub export: Option<PathBuf>,
pub extension: Vec<PathBuf>,
pub no_extensions: bool,
pub skill: Vec<PathBuf>,
pub no_skills: bool,
pub prompt_template: Vec<PathBuf>,
pub no_prompt_templates: bool,
pub theme: Vec<PathBuf>,
pub no_themes: bool,
pub no_context_files: bool,
pub list_models: Option<Option<String>>,
pub verbose: bool,
pub offline: bool,
pub command: Option<Commands>,
pub messages: Vec<String>,
pub file_args: Vec<PathBuf>,
}Expand description
Main CLI arguments
Fields§
§provider: Option<String>Provider name
model: Option<String>Model pattern
api_key: Option<String>API key
system_prompt: Option<String>System prompt
append_system_prompt: Vec<String>Append system prompt
thinking: Option<ThinkingLevel>Thinking level
continue_session: boolContinue session
resume: boolResume session
session: Option<String>Session
fork: Option<String>Fork session
session_dir: Option<PathBuf>Session directory
no_session: boolNo session
models: Option<String>Models for cycling
no_tools: boolNo tools
no_builtin_tools: boolNo built-in tools
tools: Option<String>Tools allowlist
print: boolPrint mode
export: Option<PathBuf>Export
extension: Vec<PathBuf>Extensions
no_extensions: boolNo extensions
skill: Vec<PathBuf>Skills
no_skills: boolNo skills
prompt_template: Vec<PathBuf>Prompt templates
no_prompt_templates: boolNo prompt templates
theme: Vec<PathBuf>Themes
no_themes: boolNo themes
no_context_files: boolNo context files
list_models: Option<Option<String>>List models
verbose: boolVerbose
offline: boolOffline
command: Option<Commands>Command to run
messages: Vec<String>Messages
file_args: Vec<PathBuf>File arguments
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
Append to
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>
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 CliArgs
impl Parser for CliArgs
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 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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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