Struct wildland_devshell::cli::CliArguments
source · pub struct CliArguments {
with_lss: Option<String>,
with_sfo: Option<String>,
with_cfg: Option<String>,
with_user: Option<String>,
with_template_path: Option<String>,
with_container_name: Option<String>,
with_container_path: Option<String>,
script: Option<String>,
piped: bool,
interact: bool,
}
Fields§
§with_lss: Option<String>
§with_sfo: Option<String>
§with_cfg: Option<String>
§with_user: Option<String>
§with_template_path: Option<String>
§with_container_name: Option<String>
§with_container_path: Option<String>
§script: Option<String>
§piped: bool
§interact: bool
Implementations§
source§impl CliArguments
impl CliArguments
pub fn check_containers_eligible(&self) -> Result<(String, String, String)>
pub fn check_io_eligible(&self) -> Result<()>
pub fn process_io(&self, repl: &mut Repl<Context, Error>)
fn process_pipe(repl: &mut Repl<Context, Error>) -> Result<String>
fn process_script( repl: &mut Repl<Context, Error>, script: &String ) -> Result<String>
pub fn uses_script(&self) -> bool
pub fn uses_pipe(&self) -> bool
pub fn is_interactive(&self) -> bool
Trait Implementations§
source§impl Args for CliArguments
impl Args for CliArguments
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§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
source§impl Clone for CliArguments
impl Clone for CliArguments
source§fn clone(&self) -> CliArguments
fn clone(&self) -> CliArguments
Returns a copy 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 CommandFactory for CliArguments
impl CommandFactory for CliArguments
source§impl Debug for CliArguments
impl Debug for CliArguments
source§impl FromArgMatches for CliArguments
impl FromArgMatches for CliArguments
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 CliArguments
impl Parser for CliArguments
§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
Parse from
std::env::args_os()
, return Err on error.§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations§
impl RefUnwindSafe for CliArguments
impl Send for CliArguments
impl Sync for CliArguments
impl Unpin for CliArguments
impl UnwindSafe for CliArguments
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