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
sourceimpl Debug for SubCommand
impl Debug for SubCommand
sourceimpl StructOpt for SubCommand
impl StructOpt for SubCommand
sourcefn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by StructOpt::clap
called on
the same type, otherwise it must panic. Read more
sourcefn from_args() -> Self
fn from_args() -> Self
Builds the struct from the command line arguments (std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program. Read more
sourcefn from_args_safe() -> Result<Self, Error>
fn from_args_safe() -> Result<Self, Error>
Builds the struct from the command line arguments (std::env::args_os
).
Unlike StructOpt::from_args
, returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you. Read more
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making.
Print the error message and quit the program in case of failure. Read more
sourcefn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for SubCommand
impl Send for SubCommand
impl Sync for SubCommand
impl Unpin for SubCommand
impl UnwindSafe for SubCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Convert self
to an expression for Diesel’s query builder. Read more
sourcefn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more