pub enum Commands {
Run {
target: TargetArg,
form_factor: HarmonyFormFactorArg,
render: RenderArg,
release: bool,
package: Option<String>,
watch: bool,
port: u16,
plan: bool,
},
Dev {
target: DevTargetArg,
render: RenderArg,
release: bool,
path: Option<PathBuf>,
out: Option<PathBuf>,
package: Option<String>,
server: ServerBindArgs,
ota: bool,
plan: bool,
},
Update {
action: UpdateAction,
},
Docs {
action: Option<DocsAction>,
build: DocsBuildArgs,
watch: bool,
server: ServerBindArgs,
},
Build {
target: TargetArg,
form_factor: HarmonyFormFactorArg,
render: RenderArg,
release: bool,
plan: bool,
},
Check {
all_targets: bool,
target: TargetArg,
package: Option<String>,
plan: bool,
},
Fmt {
check: bool,
path: Option<PathBuf>,
macros_only: bool,
},
Doctor {
json: bool,
},
New {
name: String,
path: Option<PathBuf>,
},
}Expand description
Top-level euv CLI subcommands.
Variants§
Run
Runs an euv application for a target platform and render mode, with optional --watch hot reload.
Fields
form_factor: HarmonyFormFactorArgOptional HarmonyOS form factor (phone, tablet, pc, foldable, tv, car, wearable).
Dev
Starts the hot-reload and Dynamic WASM OTA development server for Web, Native, Docs, Terminal, Harmony, Wearable, MiniApp, or QuickApp.
Fields
target: DevTargetArgDevelopment pipeline target (web, native, docs, tui, cli, harmony, wearable, miniapp, quickapp).
server: ServerBindArgsShared dev server bind, poll interval, and smoke-run flags.
Update
Manages the Hyperlane HTTP + SSE dynamic update server and atomic local release store (serve, stage, publish, rollback, status).
Fields
action: UpdateActionDynamic update server or store management subcommand.
Docs
Builds or live-serves a static documentation site from all .md files in a project.
Fields
action: Option<DocsAction>Optional build or dev subcommand (defaults to building all project .md files).
build: DocsBuildArgsShared source, output, title, and base URL flags.
server: ServerBindArgsShared dev server bind, poll interval, and smoke-run flags when --watch is active.
Build
Builds native, terminal, wearable, HarmonyOS, Mini-Program, QuickApp, or Web bundles for one or all targets.
Fields
form_factor: HarmonyFormFactorArgOptional HarmonyOS device form factor (phone, tablet, pc, foldable, tv, car, wearable).
Check
Checks Rust compilation across one or all cross-platform targets.
Fields
Fmt
Runs unified crate-cli text/Rust formatting first, then normalizes indentation inside all euv macro blocks (view!, style!, etc.).
Fields
Doctor
Inspects installed Rust targets, SDKs, and cross-platform tooling readiness.
New
Scaffolds a new cross-platform euv native project.
Trait Implementations§
impl Eq for Commands
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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>
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>
ArgMatches to self.impl StructuralPartialEq for Commands
Source§impl Subcommand for Commands
impl Subcommand for Commands
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Forget for Commands
impl Freeze for Commands
impl Move for Commands
impl RefUnwindSafe for Commands
impl Send for Commandswhere
RawVecInner: Send,
impl Sync for Commandswhere
RawVecInner: Sync,
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commandswhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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