Enum hyper_scripter::args::Subs
source · pub enum Subs {
Show 17 variants
Other(Vec<String>),
Help {
args: Vec<String>,
},
EnvHelp {
script_query: ScriptQuery,
},
LoadUtils,
Migrate,
Edit {
ty: Option<ScriptFullType>,
no_template: bool,
tags: Option<TagSelector>,
fast: bool,
edit_query: EditQuery<ScriptQuery>,
content: Vec<String>,
},
Alias {
unset: bool,
before: Option<String>,
after: Vec<String>,
},
Run {
dummy: bool,
repeat: Option<u64>,
previous: bool,
error_no_previous: bool,
dir: Option<PathBuf>,
script_query: ScriptQuery,
args: Vec<String>,
},
Which {
script_query: ScriptQuery,
},
Cat {
script_query: ScriptQuery,
},
RM {
queries: Vec<ListQuery>,
purge: bool,
},
LS(List),
Types(Types),
CP {
tags: Option<TagSelector>,
origin: ListQuery,
new: EditQuery<ScriptOrDirQuery>,
},
MV {
ty: Option<ScriptType>,
tags: Option<TagSelector>,
origin: ListQuery,
new: Option<EditQuery<ScriptOrDirQuery>>,
},
Tags(Tags),
History {
subcmd: History,
},
}Variants§
Other(Vec<String>)
Help
EnvHelp
Fields
§
script_query: ScriptQueryLoadUtils
Migrate
Edit
Alias
Run
Fields
§
script_query: ScriptQueryWhich
Fields
§
script_query: ScriptQueryCat
Fields
§
script_query: ScriptQueryRM
LS(List)
Types(Types)
CP
MV
Tags(Tags)
History
Trait Implementations§
source§impl CommandFactory for Subs
impl CommandFactory for Subs
source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with
CommandFactory::command_for_updatesource§impl FromArgMatches for Subs
impl FromArgMatches for Subs
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
Assign values from
ArgMatches to self.source§impl Parser for Subs
impl Parser for Subs
source§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
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
source§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
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
source§impl Subcommand for Subs
impl Subcommand for Subs
source§fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommand