Enum sn0int::args::SubCommand
source · pub enum SubCommand {
Show 26 variants
Run(Run),
Sandbox(Sandbox),
Login(Login),
New(New),
Publish(Publish),
Install(Install),
Search(Search),
Pkg(Args),
Add(Args),
Select(Args),
Delete(Args),
Activity(Args),
Scope(Args),
Noscope(Args),
Autoscope(Args),
Autonoscope(Args),
Rescope(Args),
Workspace(Args),
Cal(Args),
Notify(Args),
Fsck(Args),
Export(Args),
Stats(Args),
Repl,
Paths,
Completions(Completions),
}
Variants§
Run(Run)
Run a module directly
Sandbox(Sandbox)
For internal use
Login(Login)
Login to the registry for publishing
New(New)
Create a new module
Publish(Publish)
Publish a script to the registry
Install(Install)
Install a module from the registry
Search(Search)
Search in the registry
Pkg(Args)
The sn0int package manager
Add(Args)
Insert into the database
Select(Args)
Select from the database
Delete(Args)
Delete from the database
Activity(Args)
Query logged activity
Scope(Args)
Include entities in the scope
Noscope(Args)
Exclude entities from scope
Autoscope(Args)
Manage autoscope rules
Autonoscope(Args)
Manage autonoscope rules
Rescope(Args)
Rescope all entities based on autonoscope rules
Workspace(Args)
Manage workspaces
Cal(Args)
Calendar
Notify(Args)
Notify
Fsck(Args)
Verify blob storage for corrupt and dangling blobs
Export(Args)
Export a workspace for external processing
Stats(Args)
Show statistics about your current workspace
Repl
Run a lua repl
Paths
Show paths of various file system locations
Completions(Completions)
Generate shell completions
Trait Implementations§
source§impl CommandFactory for SubCommand
impl CommandFactory for SubCommand
source§impl Debug for SubCommand
impl Debug for SubCommand
source§impl FromArgMatches for SubCommand
impl FromArgMatches for SubCommand
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 SubCommand
impl Parser for SubCommand
§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.
source§impl Subcommand for SubCommand
impl Subcommand for SubCommand
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
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 RefUnwindSafe for SubCommand
impl Send for SubCommand
impl Sync for SubCommand
impl Unpin for SubCommand
impl UnwindSafe for SubCommand
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more