pub enum Commands {
Build(BuildCommand),
Run(RunCommand),
New(NewCommand),
Log(LogCommand),
}
Variants§
Build(BuildCommand)
Starts the process of building/packaging/signing of the rust crate
Run(RunCommand)
Executes build
command and then deploy and launches the application on the device/emulator
New(NewCommand)
Creates a new Cargo package in the given directory. Project will be ready to build with creator
Log(LogCommand)
Attach logger to device with running application
Implementations§
Trait Implementations§
Source§impl Clap for Commands
impl Clap for Commands
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§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(matches: &ArgMatches) -> Self
fn from_arg_matches(matches: &ArgMatches) -> Self
It’s common to have an “application context” struct (sometimes called
config) that represents all the normalized values after being processed by
the CLI. Read more
Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(app: App<'b>) -> App<'b>
fn augment_subcommands<'b>(app: App<'b>) -> App<'b>
@TODO @release @docs
Source§fn from_subcommand(subcommand: Option<(&str, &ArgMatches)>) -> Option<Self>
fn from_subcommand(subcommand: Option<(&str, &ArgMatches)>) -> Option<Self>
@TODO @release @docs
Auto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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