Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
    Run {
        target: TargetArg,
        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,
    },
    Docs {
        action: Option<DocsAction>,
        build: DocsBuildArgs,
        watch: bool,
        server: ServerBindArgs,
    },
    Build {
        target: TargetArg,
        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

§target: TargetArg

Target platform to launch.

§render: RenderArg

Rendering pipeline mode.

§release: bool

Build and run in release mode.

§package: Option<String>

Optional Cargo package name to run.

§watch: bool

Enable file-watching hot reload and live OTA update serving.

§port: u16

HTTP hot-reload/OTA port when --watch is enabled.

§plan: bool

Print the execution plan without spawning Cargo.

§

Dev

Starts the hot-reload and Dynamic WASM OTA development server for Web, Native, or Docs.

Fields

§target: DevTargetArg

Development pipeline target (web, native, or docs).

§render: RenderArg

Rendering pipeline mode default.

§release: bool

Build and serve in release mode when rebuilding Web or Native targets.

§path: Option<PathBuf>

Optional project root directory to watch (defaults to current directory).

§out: Option<PathBuf>

Optional output directory for built bundles.

§package: Option<String>

Optional Cargo package name to rebuild on changes.

§server: ServerBindArgs

Shared dev server bind, poll interval, and smoke-run flags.

§ota: bool

Enable live Dynamic WASM OTA manifest + .wasm hot-update endpoint (--ota=false disables).

§plan: bool

Print the structured dev server plan without spawning processes.

§

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: DocsBuildArgs

Shared source, output, title, and base URL flags.

§watch: bool

Enable live watch and SSE hot-reload dev server directly from euv docs --watch.

§server: ServerBindArgs

Shared dev server bind, poll interval, and smoke-run flags when --watch is active.

§

Build

Builds native or Web bundles for one or all seven targets.

Fields

§target: TargetArg

Target platform (or all).

§render: RenderArg

Rendering pipeline mode default.

§release: bool

Enable release optimization profile.

§plan: bool

Print structured JSON build plans without executing.

§

Check

Checks Rust compilation across one or all seven cross-platform targets.

Fields

§all_targets: bool

Check all seven platform targets in sequence.

§target: TargetArg

Single target to check when --all-targets is omitted.

§package: Option<String>

Optional Cargo package name to check.

§plan: bool

Print the planned commands without running Cargo.

§

Fmt

Runs unified crate-cli text/Rust formatting first, then normalizes indentation inside all euv macro blocks (view!, style!, etc.).

Fields

§check: bool

Verify formatting without modifying files.

§path: Option<PathBuf>

Optional root directory or file path (defaults to current directory).

§macros_only: bool

Format only euv procedural macro bodies without invoking crate-cli or cargo fmt.

§

Doctor

Inspects installed Rust targets, SDKs, and cross-platform tooling readiness.

Fields

§json: bool

Emit machine-readable JSON output.

§

New

Scaffolds a new cross-platform euv native project.

Fields

§name: String

Name of the new project directory and crate.

§path: Option<PathBuf>

Optional parent directory (defaults to current working directory).

Trait Implementations§

Source§

impl Clone for Commands

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Commands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Commands

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl PartialEq for Commands

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Commands

Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

§

impl Forget for Commands

§

impl Freeze for Commands
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for Commands

§

impl RefUnwindSafe for Commands

§

impl Send for Commands
where RawVecInner: Send,

§

impl Sync for Commands
where RawVecInner: Sync,

§

impl Unpin for Commands
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for Commands

§

impl UnwindSafe for Commands
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.