pub struct CommonArgs {
pub config: Option<PathBuf>,
pub settings_dir: Option<PathBuf>,
pub profile: Option<String>,
pub no_color: bool,
pub soul: Option<PathBuf>,
pub skills_dir: Option<PathBuf>,
pub no_secrets: bool,
pub gateway: Option<String>,
}Fields§
§config: Option<PathBuf>Path to a config.toml file
settings_dir: Option<PathBuf>Settings directory (default: ~/.rustyclaw)
profile: Option<String>Isolate state under ~/.rustyclaw-
no_color: boolDisable coloured terminal output
soul: Option<PathBuf>Path to SOUL.md
skills_dir: Option<PathBuf>Skills directory
no_secrets: boolDisable secrets storage
gateway: Option<String>Gateway WebSocket URL (ws://…)
Implementations§
Source§impl CommonArgs
impl CommonArgs
Sourcepub fn effective_settings_dir(&self) -> Option<PathBuf>
pub fn effective_settings_dir(&self) -> Option<PathBuf>
Resolve the effective settings directory, honouring --profile.
pub fn config_path(&self) -> Option<PathBuf>
pub fn apply_overrides(&self, config: &mut Config)
Trait Implementations§
Source§impl Args for CommonArgs
impl Args for CommonArgs
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 Clone for CommonArgs
impl Clone for CommonArgs
Source§fn clone(&self) -> CommonArgs
fn clone(&self) -> CommonArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommonArgs
impl Debug for CommonArgs
Source§impl FromArgMatches for CommonArgs
impl FromArgMatches for CommonArgs
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.Auto Trait Implementations§
impl Freeze for CommonArgs
impl RefUnwindSafe for CommonArgs
impl Send for CommonArgs
impl Sync for CommonArgs
impl Unpin for CommonArgs
impl UnsafeUnpin for CommonArgs
impl UnwindSafe for CommonArgs
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