pub enum Subs {
Show 17 variants
Other(Vec<String>),
Help {
args: Vec<String>,
},
LoadUtils,
Migrate,
Edit {
ty: Option<ScriptFullType>,
no_template: bool,
tags: Option<TagSelector>,
fast: bool,
edit_query: Vec<EditQuery<ListQuery>>,
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 {
queries: Vec<ListQuery>,
},
Cat {
queries: Vec<ListQuery>,
with: Option<String>,
},
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,
},
Top {
wait: bool,
id: Vec<u64>,
queries: Vec<ListQuery>,
},
}
Variants§
Other(Vec<String>)
Help
LoadUtils
Migrate
Edit
Alias
Run
Fields
§
script_query: ScriptQuery
Which
Cat
RM
LS(List)
Types(Types)
CP
MV
Tags(Tags)
History
Top
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_update
Source§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) -> 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)
Update from iterator, exit 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 subcommandAuto Trait Implementations§
impl Freeze for Subs
impl RefUnwindSafe for Subs
impl Send for Subs
impl Sync for Subs
impl Unpin for Subs
impl UnwindSafe for Subs
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> 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