euv_cli/args/enum.rs
1use super::*;
2
3/// CLI target selector covering all 38 concrete euv targets plus target groups (`desktop`, `mobile`, `apple`, `terminal`, `harmony-all`, `wearables`, `miniapps`, `quickapps`, `native`, `all`).
4#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, PartialEq, Serialize, ValueEnum)]
5pub enum TargetArg {
6 /// Browser WebAssembly target (`wasm32-unknown-unknown`).
7 Web,
8 /// Android native NDK target (`aarch64-linux-android`).
9 Android,
10 /// iOS native UIKit/Metal device target (`aarch64-apple-ios`).
11 Ios,
12 /// iOS Simulator UIKit/Metal target (`aarch64-apple-ios-sim`).
13 #[value(name = "ios-sim")]
14 IosSim,
15 /// iPadOS native UIKit/Metal device target (`aarch64-apple-ios`).
16 Ipad,
17 /// iPadOS Simulator UIKit/Metal target (`aarch64-apple-ios-sim`).
18 #[value(name = "ipad-sim")]
19 IpadSim,
20 /// macOS native AppKit/Metal target (`aarch64-apple-darwin` / `x86_64-apple-darwin`).
21 Macos,
22 /// Windows native Win32/D3D12 target (`x86_64-pc-windows-msvc` / `aarch64-pc-windows-msvc`).
23 Windows,
24 /// Linux native Wayland/X11/Vulkan target (`x86_64-unknown-linux-gnu` / `aarch64-unknown-linux-gnu`).
25 Linux,
26 /// Interactive PTY Terminal UI target.
27 Tui,
28 /// Non-interactive static/pipe CLI terminal target.
29 Cli,
30 /// Google/Samsung Wear OS smartwatch target.
31 Wearos,
32 /// Apple watchOS smartwatch target.
33 Watchos,
34 /// Huawei HarmonyOS Watch wearable target.
35 #[value(name = "harmony-wearable")]
36 HarmonyWearable,
37 /// Xiaomi HyperOS / Vela Watch wearable target.
38 Vela,
39 /// vivo BlueOS Watch smartwatch target (`blueos` / `vivo`).
40 #[value(name = "vivo-watch", alias = "blueos", alias = "vivo")]
41 VivoWatch,
42 /// OPPO ColorOS Watch / Wear OS dual-engine smartwatch target.
43 #[value(name = "oppo-watch", alias = "oppo")]
44 OppoWatch,
45 /// Garmin Connect IQ smartwatch target.
46 #[value(name = "garmin")]
47 Garmin,
48 /// Amazfit Zepp OS smartwatch target.
49 #[value(name = "zeppos", alias = "amazfit")]
50 Zeppos,
51 /// Generic smart wearable target building all supported smartwatch ecosystems.
52 Wearable,
53 /// HarmonyOS / OpenHarmony multi-form-factor native target (phone/tablet/pc/foldable/tv/car).
54 Harmony,
55 /// HarmonyOS PC / 2-in-1 desktop native target (`harmony-pc` / `harmony-2in1`).
56 #[value(name = "harmony-pc", alias = "harmony-2in1")]
57 HarmonyPc,
58 /// WeChat Mini-Program target (`wx`).
59 Wechat,
60 /// Alipay Mini-Program target (`my`).
61 Alipay,
62 /// Douyin / ByteDance Mini-Program target (`tt`).
63 Douyin,
64 /// Baidu Smart Mini-Program target (`swan`).
65 Baidu,
66 /// QQ Mini-Program target (`qq`).
67 Qq,
68 /// Kuaishou Mini-Program target (`ks`).
69 Kuaishou,
70 /// JD Mini-Program target (`jd`).
71 #[value(name = "jd", alias = "jingdong")]
72 Jd,
73 /// Xiaohongshu Mini-Program target (`xhs`).
74 #[value(name = "xhs", alias = "xiaohongshu")]
75 Xhs,
76 /// DingTalk Mini-Program target (`dd`).
77 #[value(name = "dingtalk", alias = "dd")]
78 Dingtalk,
79 /// Feishu / Lark Mini-Program target (`tt`).
80 #[value(name = "feishu", alias = "lark")]
81 Feishu,
82 /// Taobao Mini-Program target (`my`).
83 #[value(name = "taobao", alias = "tb")]
84 Taobao,
85 /// Meituan Mini-Program target (`mt`).
86 #[value(name = "meituan", alias = "mt")]
87 Meituan,
88 /// HarmonyOS Atomic Service target (`atomic`).
89 #[value(name = "harmony-atomic")]
90 HarmonyAtomic,
91 /// QuickApp Alliance / Huawei QuickApp unified target.
92 Quickapp,
93 /// QuickApp Alliance (`@system.*` OEM distribution) target.
94 #[value(name = "quickapp-alliance")]
95 QuickappAlliance,
96 /// Huawei QuickApp (`@system.*` + `@service.*`) target.
97 #[value(name = "quickapp-huawei")]
98 QuickappHuawei,
99 /// Target group expanding to `macos`, `windows`, and `linux`.
100 Desktop,
101 /// Target group expanding to `android`, `ios`, `ipad`, `ios-sim`, `ipad-sim`, and `harmony`.
102 Mobile,
103 /// Target group expanding to `macos`, `ios`, `ipad`, `ios-sim`, `ipad-sim`, and `watchos`.
104 Apple,
105 /// Target group expanding to `tui` and `cli`.
106 Terminal,
107 /// Target group expanding to `harmony`, `harmony-pc`, `harmony-wearable`, and `harmony-atomic`.
108 #[value(name = "harmony-all")]
109 HarmonyAll,
110 /// Target group expanding to all 9 wearable targets.
111 Wearables,
112 /// Target group expanding to all 13 Mini-Program targets.
113 Miniapps,
114 /// Target group expanding to all 3 QuickApp targets.
115 Quickapps,
116 /// Current host native target.
117 Native,
118 /// Every supported production euv platform (36 targets).
119 All,
120}
121
122/// Optional HarmonyOS / OpenHarmony device form factor selector for `euv build --target harmony`.
123#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq, Serialize, ValueEnum)]
124pub enum HarmonyFormFactorArg {
125 /// HarmonyOS phone device profile.
126 #[default]
127 Phone,
128 /// HarmonyOS tablet device profile.
129 Tablet,
130 /// HarmonyOS PC / 2-in-1 desktop device profile.
131 Pc,
132 /// HarmonyOS foldable display device profile.
133 Foldable,
134 /// HarmonyOS smart TV / Vision device profile.
135 Tv,
136 /// HarmonyOS automotive / cockpit device profile.
137 Car,
138 /// HarmonyOS smartwatch wearable device profile.
139 Wearable,
140}
141
142/// CLI render pipeline mode selector.
143#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize, ValueEnum)]
144pub enum RenderArg {
145 /// Automatically prefer hardware GPU with software fallback.
146 Auto,
147 /// Deterministic software CPU rasterizer.
148 Software,
149 /// Native GPU instanced pipeline.
150 Hardware,
151 /// Hybrid CPU vector + GPU texture compositor.
152 Hybrid,
153}
154
155/// Target mode for the `euv dev` hot-reload and OTA development server.
156#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize, ValueEnum)]
157pub enum DevTargetArg {
158 /// Build and live-reload all project Markdown documentation pages.
159 Docs,
160 /// Build and live-reload WebAssembly zero-JS bundles plus Dynamic WASM OTA feed.
161 Web,
162 /// Watch Rust sources, rebuild, hot-restart the native app, and serve Dynamic WASM OTA updates.
163 Native,
164 /// Watch Rust sources and relaunch interactive PTY Terminal UI builds.
165 Tui,
166 /// Watch Rust sources and rerun static/pipe CLI terminal builds.
167 Cli,
168 /// Watch Rust sources and rebuild HarmonyOS HAP bundles.
169 Harmony,
170 /// Watch Rust sources and rebuild wearable smartwatch bundles.
171 Wearable,
172 /// Watch Rust sources and rebuild Mini-Program bundles.
173 Miniapp,
174 /// Watch Rust sources and rebuild QuickApp bundles.
175 Quickapp,
176}
177
178/// Project scaffolding template selector for `euv new --template`.
179#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq, Serialize, ValueEnum)]
180pub enum ProjectTemplateArg {
181 /// Cross-platform native + Web Rust UI application (`src/main.rs` + `src/lib.rs` + `euv.toml`).
182 #[default]
183 App,
184 /// WebAssembly zero-JS browser application (`cdylib` + `wasm-bindgen` entry + `euv.toml`).
185 Web,
186 /// Hot-updatable Dynamic WASM widget crate exporting `euv_abi_version` and `euv_render`.
187 #[value(name = "dynamic-widget")]
188 DynamicWidget,
189 /// Multi-locale VuePress-style Markdown documentation site configured for `euv docs`.
190 Docs,
191}
192
193/// Shell type selector for `euv completions <shell>`.
194#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize, ValueEnum)]
195pub enum ShellKindArg {
196 /// Bourne Again SHell completion script.
197 Bash,
198 /// Z shell completion function (`_euv`).
199 Zsh,
200 /// Friendly Interactive Shell completion rules.
201 Fish,
202 /// PowerShell `Register-ArgumentCompleter` script.
203 #[value(name = "powershell", alias = "pwsh")]
204 Powershell,
205}
206
207/// Subcommands under `euv docs` for building or live-serving project Markdown documentation.
208#[derive(Clone, Debug, Eq, PartialEq, Subcommand)]
209pub enum DocsAction {
210 /// Builds all Markdown files under a project or docs directory into a static or WASM site.
211 Build {
212 /// Shared source, output, title, base URL, and WASM build flags.
213 #[command(flatten)]
214 build: DocsBuildArgs,
215 },
216 /// Builds and serves Markdown documentation with live file-watching and SSE hot reload.
217 Dev {
218 /// Shared source, output, title, base URL, and WASM build flags.
219 #[command(flatten)]
220 build: DocsBuildArgs,
221 /// Shared dev server bind, poll interval, and smoke-run flags.
222 #[command(flatten)]
223 server: ServerBindArgs,
224 },
225}
226
227/// Subcommands under `euv update` for operating the Hyperlane HTTP + SSE dynamic update server and local store.
228#[derive(Clone, Debug, Eq, PartialEq, Subcommand)]
229pub enum UpdateAction {
230 /// Starts the read-only Hyperlane HTTP + SSE dynamic update server backed by the local store directory.
231 Serve {
232 /// Local update store root directory (`staging/`, `blobs/`, `releases/`, `channels/`, `state/`).
233 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
234 store: PathBuf,
235 /// Host bind address.
236 #[arg(long, default_value = DEFAULT_UPDATE_SERVER_HOST)]
237 host: String,
238 /// TCP listen port (`0` selects an ephemeral port).
239 #[arg(long, default_value_t = DEFAULT_UPDATE_SERVER_PORT)]
240 port: u16,
241 /// Optional external reverse-proxy base URL (e.g. `https://ota.example.com/euv`).
242 #[arg(long)]
243 proxy_base: Option<String>,
244 /// SSE keep-alive heartbeat interval in milliseconds.
245 #[arg(long, default_value_t = DEFAULT_UPDATE_HEARTBEAT_MS)]
246 heartbeat_ms: u64,
247 /// Background channel pointer watcher polling interval in milliseconds.
248 #[arg(long, default_value_t = DEFAULT_UPDATE_WATCH_POLL_MS)]
249 poll_ms: u64,
250 /// Validate store layout and server bind readiness then exit immediately.
251 #[arg(long, default_value_t = false)]
252 once: bool,
253 /// Print the structured server configuration without binding sockets.
254 #[arg(long, default_value_t = false)]
255 plan: bool,
256 },
257 /// Stages and SHA-256-verifies a release manifest and its blobs into `staging/<stage_id>/`.
258 Stage {
259 /// Local update store root directory.
260 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
261 store: PathBuf,
262 /// Logical project identifier.
263 #[arg(long)]
264 project: String,
265 /// Release channel name (e.g. `prod`).
266 #[arg(long)]
267 channel: String,
268 /// Unique stage identifier name.
269 #[arg(long)]
270 stage_id: String,
271 /// Path to the draft JSON `ReleaseManifest` file.
272 #[arg(long)]
273 manifest: PathBuf,
274 /// Directory containing built artifact blobs referenced by `manifest`.
275 #[arg(long)]
276 blobs_dir: PathBuf,
277 },
278 /// Atomically signs and publishes a staged release with a strictly monotonic sequence number.
279 Publish {
280 /// Local update store root directory.
281 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
282 store: PathBuf,
283 /// Logical project identifier.
284 #[arg(long)]
285 project: String,
286 /// Release channel name.
287 #[arg(long)]
288 channel: String,
289 /// Previously staged directory name under `staging/`.
290 #[arg(long)]
291 stage_id: String,
292 /// Offline HMAC-SHA256 signing secret (or provide `--signing-key-env`).
293 #[arg(long)]
294 signing_key: Option<String>,
295 /// Environment variable name holding the offline signing secret.
296 #[arg(long, default_value = ENV_UPDATE_SIGNING_KEY)]
297 signing_key_env: String,
298 },
299 /// Signs a NEW monotonic release pointing back to a historical release's verified blobs (never replaying old manifests).
300 Rollback {
301 /// Local update store root directory.
302 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
303 store: PathBuf,
304 /// Logical project identifier.
305 #[arg(long)]
306 project: String,
307 /// Release channel name.
308 #[arg(long)]
309 channel: String,
310 /// Historical release sequence whose verified artifacts should be restored.
311 #[arg(long)]
312 to_release: u64,
313 /// Offline HMAC-SHA256 signing secret (or provide `--signing-key-env`).
314 #[arg(long)]
315 signing_key: Option<String>,
316 /// Environment variable name holding the offline signing secret.
317 #[arg(long, default_value = ENV_UPDATE_SIGNING_KEY)]
318 signing_key_env: String,
319 },
320 /// Inspects active channel pointers, release counts, and content-addressed blob inventory in a local update store.
321 Status {
322 /// Local update store root directory.
323 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
324 store: PathBuf,
325 /// Optional project filter.
326 #[arg(long)]
327 project: Option<String>,
328 /// Optional channel filter.
329 #[arg(long)]
330 channel: Option<String>,
331 },
332 /// Builds, verifies, signs, and atomically publishes a live hot-update release from a `.json` UI spec, `.wasm` binary, or inline `--title` in one command.
333 Push {
334 /// Local update store root directory.
335 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
336 store: PathBuf,
337 /// Logical project identifier.
338 #[arg(long, default_value = DEFAULT_UPDATE_PROJECT)]
339 project: String,
340 /// Release channel name.
341 #[arg(long, default_value = DEFAULT_UPDATE_CHANNEL)]
342 channel: String,
343 /// Optional target route path to update (defaults to `"/dynamic-panel"` when neither `--route` nor `--slot` is specified).
344 #[arg(long)]
345 route: Option<String>,
346 /// Optional component slot identifier to update (defaults to `"promo_banner"` when neither `--route` nor `--slot` is specified).
347 #[arg(long)]
348 slot: Option<String>,
349 /// Path to a JSON `DynamicNodeSpec` or compiled `.wasm` artifact file.
350 #[arg(long)]
351 file: Option<PathBuf>,
352 /// Optional inline card title generating a ready-to-push declarative or WASM update.
353 #[arg(long)]
354 title: Option<String>,
355 /// Optional body copy paired with `--title` for quick live OTA updates.
356 #[arg(long)]
357 body: Option<String>,
358 /// Generate a genuine `.wasm` module binary when using `--title` instead of declarative JSON.
359 #[arg(long, default_value_t = false)]
360 wasm_widget: bool,
361 /// Optional RGB hex accent color (e.g. `0x16A34A` or `16A34A`) when using `--title`.
362 #[arg(long)]
363 accent_hex: Option<String>,
364 /// Offline HMAC-SHA256 signing secret (or provide `--signing-key-env`).
365 #[arg(long)]
366 signing_key: Option<String>,
367 /// Environment variable name holding the offline signing secret.
368 #[arg(long, default_value = ENV_UPDATE_SIGNING_KEY)]
369 signing_key_env: String,
370 },
371 /// Watches a `.json` UI spec or `.wasm` artifact file and automatically pushes signed live hot-update releases whenever it changes.
372 Watch {
373 /// Local update store root directory.
374 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
375 store: PathBuf,
376 /// Logical project identifier.
377 #[arg(long, default_value = DEFAULT_UPDATE_PROJECT)]
378 project: String,
379 /// Release channel name.
380 #[arg(long, default_value = DEFAULT_UPDATE_CHANNEL)]
381 channel: String,
382 /// Optional target route path to update.
383 #[arg(long)]
384 route: Option<String>,
385 /// Optional component slot identifier to update.
386 #[arg(long)]
387 slot: Option<String>,
388 /// Watched `.json` UI spec or `.wasm` binary file path.
389 #[arg(long)]
390 file: PathBuf,
391 /// File polling interval in milliseconds.
392 #[arg(long, default_value_t = DEFAULT_UPDATE_WATCH_POLL_MS)]
393 poll_ms: u64,
394 /// Perform a single verified push then exit immediately.
395 #[arg(long, default_value_t = false)]
396 once: bool,
397 /// Offline HMAC-SHA256 signing secret (or provide `--signing-key-env`).
398 #[arg(long)]
399 signing_key: Option<String>,
400 /// Environment variable name holding the offline signing secret.
401 #[arg(long, default_value = ENV_UPDATE_SIGNING_KEY)]
402 signing_key_env: String,
403 },
404 /// Initializes an atomic local OTA update store layout and optional project/channel config.
405 Init {
406 /// Local update store root directory.
407 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
408 store: PathBuf,
409 /// Default logical project identifier.
410 #[arg(long, default_value = DEFAULT_UPDATE_PROJECT)]
411 project: String,
412 /// Default release channel name.
413 #[arg(long, default_value = DEFAULT_UPDATE_CHANNEL)]
414 channel: String,
415 /// Optional explicit signing key (otherwise generates a fresh random hex secret).
416 #[arg(long)]
417 signing_key: Option<String>,
418 /// Emit machine-readable JSON output.
419 #[arg(long, default_value_t = false)]
420 json: bool,
421 },
422 /// Generates a cryptographically strong HMAC-SHA256 signing key hex string for OTA releases.
423 Keygen {
424 /// Number of random entropy bytes to generate (default `32` bytes = 64 hex chars).
425 #[arg(long, default_value_t = DEFAULT_KEYGEN_BYTES)]
426 bytes: usize,
427 /// Emit machine-readable JSON output.
428 #[arg(long, default_value_t = false)]
429 json: bool,
430 },
431 /// Compiles a Rust dynamic widget crate to `wasm32-unknown-unknown`, validates ABI exports, and optionally pushes a live OTA release.
432 Build {
433 /// Optional Cargo package name to build.
434 #[arg(short = 'p', long)]
435 package: Option<String>,
436 /// Optional path to the widget crate directory.
437 #[arg(long)]
438 path: Option<PathBuf>,
439 /// Destination file path for the verified `.wasm` widget binary.
440 #[arg(long)]
441 out: Option<PathBuf>,
442 /// Immediately sign and publish the compiled `.wasm` widget to `--store`.
443 #[arg(long, default_value_t = false)]
444 push: bool,
445 /// Local update store root directory when `--push` is set.
446 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
447 store: PathBuf,
448 /// Logical project identifier when `--push` is set.
449 #[arg(long, default_value = DEFAULT_UPDATE_PROJECT)]
450 project: String,
451 /// Release channel name when `--push` is set.
452 #[arg(long, default_value = DEFAULT_UPDATE_CHANNEL)]
453 channel: String,
454 /// Optional target route path when `--push` is set.
455 #[arg(long)]
456 route: Option<String>,
457 /// Optional target slot identifier when `--push` is set.
458 #[arg(long)]
459 slot: Option<String>,
460 /// Offline HMAC-SHA256 signing secret (or provide `--signing-key-env`).
461 #[arg(long)]
462 signing_key: Option<String>,
463 /// Environment variable name holding the offline signing secret.
464 #[arg(long, default_value = ENV_UPDATE_SIGNING_KEY)]
465 signing_key_env: String,
466 /// Compile the dynamic widget crate with `--release`.
467 #[arg(long, default_value_t = false)]
468 release: bool,
469 /// Emit machine-readable JSON output.
470 #[arg(long, default_value_t = false)]
471 json: bool,
472 },
473 /// Runs a unified single-command Hyperlane OTA server + live file watcher printing localhost and LAN URLs.
474 Dev {
475 /// Local update store root directory.
476 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
477 store: PathBuf,
478 /// Host bind address.
479 #[arg(long, default_value = DEFAULT_UPDATE_SERVER_HOST)]
480 host: String,
481 /// TCP listen port (`0` selects an ephemeral port).
482 #[arg(long, default_value_t = DEFAULT_UPDATE_SERVER_PORT)]
483 port: u16,
484 /// Optional external reverse-proxy base URL.
485 #[arg(long)]
486 proxy_base: Option<String>,
487 /// Logical project identifier.
488 #[arg(long, default_value = DEFAULT_UPDATE_PROJECT)]
489 project: String,
490 /// Release channel name.
491 #[arg(long, default_value = DEFAULT_DEV_UPDATE_CHANNEL)]
492 channel: String,
493 /// Optional target route path.
494 #[arg(long)]
495 route: Option<String>,
496 /// Optional component slot identifier.
497 #[arg(long)]
498 slot: Option<String>,
499 /// Optional `.json` spec or `.wasm` artifact file watched for automatic live pushes.
500 #[arg(long)]
501 file: Option<PathBuf>,
502 /// Watcher polling interval in milliseconds.
503 #[arg(long, default_value_t = DEFAULT_UPDATE_WATCH_POLL_MS)]
504 poll_ms: u64,
505 /// SSE keep-alive heartbeat interval in milliseconds.
506 #[arg(long, default_value_t = DEFAULT_UPDATE_HEARTBEAT_MS)]
507 heartbeat_ms: u64,
508 /// Offline HMAC-SHA256 signing secret (or provide `--signing-key-env`).
509 #[arg(long)]
510 signing_key: Option<String>,
511 /// Environment variable name holding the offline signing secret.
512 #[arg(long, default_value = ENV_UPDATE_SIGNING_KEY)]
513 signing_key_env: String,
514 /// Validate startup and optional initial push then exit immediately.
515 #[arg(long, default_value_t = false)]
516 once: bool,
517 /// Emit machine-readable JSON output.
518 #[arg(long, default_value_t = false)]
519 json: bool,
520 },
521 /// Audits offline HMAC-SHA256 signatures, channel pointers, and SHA-256 integrity of every referenced blob in a store.
522 Verify {
523 /// Local update store root directory.
524 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
525 store: PathBuf,
526 /// Logical project identifier.
527 #[arg(long, default_value = DEFAULT_UPDATE_PROJECT)]
528 project: String,
529 /// Release channel name.
530 #[arg(long, default_value = DEFAULT_UPDATE_CHANNEL)]
531 channel: String,
532 /// Optional specific release sequence to verify (defaults to active release).
533 #[arg(long)]
534 release: Option<u64>,
535 /// Offline HMAC-SHA256 verification secret (or provide `--signing-key-env`).
536 #[arg(long)]
537 signing_key: Option<String>,
538 /// Environment variable name holding the verification secret.
539 #[arg(long, default_value = ENV_UPDATE_SIGNING_KEY)]
540 signing_key_env: String,
541 /// Emit machine-readable JSON output.
542 #[arg(long, default_value_t = false)]
543 json: bool,
544 },
545 /// Compares two release sequences showing route, track, and content-addressed blob deltas.
546 Diff {
547 /// Local update store root directory.
548 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
549 store: PathBuf,
550 /// Logical project identifier.
551 #[arg(long, default_value = DEFAULT_UPDATE_PROJECT)]
552 project: String,
553 /// Release channel name.
554 #[arg(long, default_value = DEFAULT_UPDATE_CHANNEL)]
555 channel: String,
556 /// Baseline historical release sequence number.
557 #[arg(long)]
558 from: u64,
559 /// Target release sequence number to compare against `--from`.
560 #[arg(long)]
561 to: u64,
562 /// Emit machine-readable JSON output.
563 #[arg(long, default_value_t = false)]
564 json: bool,
565 },
566 /// Garbage-collects unreferenced blobs and stale staging directories while preserving active and recent releases.
567 Gc {
568 /// Local update store root directory.
569 #[arg(long, default_value = DEFAULT_UPDATE_STORE_DIR)]
570 store: PathBuf,
571 /// Number of most recent releases per channel to preserve.
572 #[arg(long, default_value_t = DEFAULT_GC_KEEP)]
573 keep: usize,
574 /// Report reclaimable files and bytes without deleting anything.
575 #[arg(long, default_value_t = false)]
576 dry_run: bool,
577 /// Emit machine-readable JSON output.
578 #[arg(long, default_value_t = false)]
579 json: bool,
580 },
581}
582
583/// Subcommands under `euv blender` for Blender 4.x/5.x inspection, export, baking, Live-Link sync, and add-on installation.
584#[derive(Clone, Debug, Eq, PartialEq, Subcommand)]
585pub enum BlenderAction {
586 /// Checks local Blender binary, version (4.0+/5.1+), glTF 2.0 exporter, Live-Link add-on, and Blender Lab MCP reachability.
587 Doctor {
588 /// Optional explicit path to a Blender executable overriding `EUV_BLENDER_BIN` and `PATH`.
589 #[arg(long)]
590 blender_bin: Option<PathBuf>,
591 /// Localhost TCP port probed for the official Blender Lab MCP bridge.
592 #[arg(long, default_value_t = DEFAULT_BLENDER_MCP_PORT)]
593 mcp_port: u16,
594 /// Emit machine-readable JSON output.
595 #[arg(long, default_value_t = false)]
596 json: bool,
597 },
598 /// Inspects a `.blend`, `.glb`, `.gltf`, `.euv3d`, or `.obj` file natively in pure Rust with zero Blender installation required.
599 Inspect {
600 /// Path to the 3D asset file to inspect.
601 file: PathBuf,
602 /// Emit machine-readable JSON output.
603 #[arg(long, default_value_t = false)]
604 json: bool,
605 },
606 /// Imports a `.blend`, `.glb`, `.gltf`, or `.obj` asset into an output directory with optional `.euv3d` compilation.
607 Import {
608 /// Source `.blend`, `.glb`, `.gltf`, or `.obj` file path.
609 input: PathBuf,
610 /// Output directory receiving the imported asset, manifest, and optional `.euv3d` archive.
611 #[arg(long)]
612 out: PathBuf,
613 /// Optional explicit path to a Blender executable for `.blend` files.
614 #[arg(long)]
615 blender_bin: Option<PathBuf>,
616 /// Also compile a 64-byte-aligned `.euv3d` package alongside the imported asset.
617 #[arg(long, default_value_t = false)]
618 bake: bool,
619 /// Number of Garland-Heckbert QEM LOD levels when `--bake` is enabled (`1..=4`).
620 #[arg(long, default_value_t = DEFAULT_BLENDER_BAKE_LODS)]
621 lods: usize,
622 /// Enable spatially clustered meshlets when `--bake` is enabled.
623 #[arg(long, default_value_t = false)]
624 meshlets: bool,
625 /// Disable spatially clustered meshlets when `--bake` is enabled.
626 #[arg(long, default_value_t = false)]
627 no_meshlets: bool,
628 /// Enable pre-baked SIMD BVH4 acceleration structures when `--bake` is enabled.
629 #[arg(long, default_value_t = false)]
630 bvh4: bool,
631 /// Disable pre-baked SIMD BVH4 acceleration structures when `--bake` is enabled.
632 #[arg(long, default_value_t = false)]
633 no_bvh4: bool,
634 /// Print the planned import/export steps as JSON without executing.
635 #[arg(long, default_value_t = false)]
636 plan: bool,
637 /// Emit machine-readable JSON output.
638 #[arg(long, default_value_t = false)]
639 json: bool,
640 },
641 /// Compiles a `.blend`, `.glb`, `.gltf`, or `.obj` asset into a zero-copy 64-byte-aligned `.euv3d` package.
642 Bake {
643 /// Source `.blend`, `.glb`, `.gltf`, or `.obj` file path.
644 input: PathBuf,
645 /// Destination `.euv3d` output file path.
646 #[arg(long)]
647 out: PathBuf,
648 /// Optional explicit path to a Blender executable for `.blend` files.
649 #[arg(long)]
650 blender_bin: Option<PathBuf>,
651 /// Number of Garland-Heckbert QEM LOD levels to bake (`1..=4`).
652 #[arg(long, default_value_t = DEFAULT_BLENDER_BAKE_LODS)]
653 lods: usize,
654 /// Explicitly enable spatially clustered meshlets (enabled by default unless `--no-meshlets` is set).
655 #[arg(long, default_value_t = false)]
656 meshlets: bool,
657 /// Disable spatially clustered meshlets.
658 #[arg(long, default_value_t = false)]
659 no_meshlets: bool,
660 /// Explicitly enable pre-baked SIMD BVH4 trees (enabled by default unless `--no-bvh4` is set).
661 #[arg(long, default_value_t = false)]
662 bvh4: bool,
663 /// Disable pre-baked SIMD BVH4 trees.
664 #[arg(long, default_value_t = false)]
665 no_bvh4: bool,
666 /// Print the planned bake steps as JSON without executing.
667 #[arg(long, default_value_t = false)]
668 plan: bool,
669 /// Emit machine-readable JSON output.
670 #[arg(long, default_value_t = false)]
671 json: bool,
672 },
673 /// Watches a 3D source file or directory, auto-baking `.euv3d` updates and streaming Live-Link SSE events.
674 Watch {
675 /// Source `.blend`, `.glb`, `.gltf`, `.obj` file or directory to watch.
676 path: PathBuf,
677 /// Output directory receiving compiled `.euv3d` artifacts.
678 #[arg(long)]
679 out: PathBuf,
680 /// Host bind interface for the embedded Live-Link HTTP/SSE server.
681 #[arg(long, default_value = DEFAULT_BLENDER_SYNC_HOST)]
682 host: String,
683 /// TCP port for the embedded Live-Link HTTP/SSE server (`0` selects an ephemeral port).
684 #[arg(long, default_value_t = DEFAULT_BLENDER_SYNC_PORT)]
685 port: u16,
686 /// Optional explicit path to a Blender executable for `.blend` sources.
687 #[arg(long)]
688 blender_bin: Option<PathBuf>,
689 /// Watcher polling interval in milliseconds.
690 #[arg(long, default_value_t = DEFAULT_BLENDER_WATCH_POLL_MS)]
691 poll_ms: u64,
692 /// Number of Garland-Heckbert QEM LOD levels (`1..=4`).
693 #[arg(long, default_value_t = DEFAULT_BLENDER_BAKE_LODS)]
694 lods: usize,
695 /// Execute one bake and Live-Link readiness check then exit immediately.
696 #[arg(long, default_value_t = false)]
697 once: bool,
698 /// Emit machine-readable JSON output.
699 #[arg(long, default_value_t = false)]
700 json: bool,
701 },
702 /// Runs the Hyperlane HTTP+SSE Live-Link daemon receiving fast JSON deltas and selective `.glb` hot-swaps.
703 LiveSync {
704 /// Host bind interface.
705 #[arg(long, default_value = DEFAULT_BLENDER_SYNC_HOST)]
706 host: String,
707 /// TCP listen port (default `9877`, avoiding Blender Lab MCP port `9876`; `0` selects an ephemeral port).
708 #[arg(long, default_value_t = DEFAULT_BLENDER_SYNC_PORT)]
709 port: u16,
710 /// Optional directory mirroring uploaded `.glb` / `.euv3d` assets to disk.
711 #[arg(long)]
712 out_dir: Option<PathBuf>,
713 /// SSE keep-alive heartbeat interval in milliseconds.
714 #[arg(long, default_value_t = DEFAULT_BLENDER_HEARTBEAT_MS)]
715 heartbeat_ms: u64,
716 /// Validate listener startup and exit immediately.
717 #[arg(long, default_value_t = false)]
718 once: bool,
719 /// Emit machine-readable JSON output.
720 #[arg(long, default_value_t = false)]
721 json: bool,
722 },
723 /// Installs or prints the production Blender 4.x/5.x `euv_live_link.py` Live-Link add-on.
724 AddonInstall {
725 /// Explicit output file or directory path for `euv_live_link.py`.
726 #[arg(long)]
727 out: Option<PathBuf>,
728 /// Print raw `euv_live_link.py` Python source directly to stdout without writing to disk.
729 #[arg(long, default_value_t = false)]
730 print: bool,
731 /// Emit machine-readable JSON installation metadata (ignored when `--print` is set).
732 #[arg(long, default_value_t = false)]
733 json: bool,
734 },
735}
736
737/// Top-level `euv` CLI subcommands.
738#[derive(Clone, Debug, Eq, PartialEq, Subcommand)]
739pub enum Commands {
740 /// Runs an euv application for a target platform and render mode, with optional `--watch` hot reload.
741 Run {
742 /// Target platform to launch.
743 #[arg(long, value_enum, default_value_t = TargetArg::Native)]
744 target: TargetArg,
745 /// Optional HarmonyOS form factor (`phone`, `tablet`, `pc`, `foldable`, `tv`, `car`, `wearable`).
746 #[arg(long, value_enum, default_value_t = HarmonyFormFactorArg::Phone)]
747 form_factor: HarmonyFormFactorArg,
748 /// Rendering pipeline mode.
749 #[arg(long, value_enum, default_value_t = RenderArg::Auto)]
750 render: RenderArg,
751 /// Build and run in release mode.
752 #[arg(long, default_value_t = false)]
753 release: bool,
754 /// Optional Cargo package name to run.
755 #[arg(short = 'p', long)]
756 package: Option<String>,
757 /// Enable file-watching hot reload and live OTA update serving.
758 #[arg(short = 'w', long, default_value_t = false)]
759 watch: bool,
760 /// HTTP hot-reload/OTA port when `--watch` is enabled.
761 #[arg(long, default_value_t = 8080)]
762 port: u16,
763 /// Print the execution plan without spawning Cargo.
764 #[arg(long, default_value_t = false)]
765 plan: bool,
766 /// Stream child process output directly to the terminal (defaults to `true` for interactive/TTY ergonomics).
767 #[arg(long, default_value_t = true, num_args = 0..=1, default_missing_value = "true")]
768 stream: bool,
769 /// Emit machine-readable JSON output.
770 #[arg(long, default_value_t = false)]
771 json: bool,
772 },
773 /// Starts the hot-reload and Dynamic WASM OTA development server for Web, Native, Docs, Terminal, Harmony, Wearable, MiniApp, or QuickApp.
774 Dev {
775 /// Development pipeline target (`web`, `native`, `docs`, `tui`, `cli`, `harmony`, `wearable`, `miniapp`, `quickapp`).
776 #[arg(long, value_enum, default_value_t = DevTargetArg::Web)]
777 target: DevTargetArg,
778 /// Rendering pipeline mode default.
779 #[arg(long, value_enum, default_value_t = RenderArg::Auto)]
780 render: RenderArg,
781 /// Build and serve in release mode when rebuilding Web or Native targets.
782 #[arg(long, default_value_t = false)]
783 release: bool,
784 /// Optional project root directory to watch (defaults to current directory).
785 #[arg(long)]
786 path: Option<PathBuf>,
787 /// Optional output directory for built bundles.
788 #[arg(long)]
789 out: Option<PathBuf>,
790 /// Optional Cargo package name to rebuild on changes.
791 #[arg(short = 'p', long)]
792 package: Option<String>,
793 /// Shared dev server bind, poll interval, and smoke-run flags.
794 #[command(flatten)]
795 server: ServerBindArgs,
796 /// Enable live Dynamic WASM OTA manifest + `.wasm` hot-update endpoint (`--ota=false` disables).
797 #[arg(long, default_value_t = true, num_args = 0..=1, default_missing_value = "true")]
798 ota: bool,
799 /// Enable sub-second hot-OTA widget/spec live swapping without restarting the host app.
800 #[arg(long, default_value_t = false)]
801 hot_ota: bool,
802 /// Watch a dynamic widget crate or declarative JSON spec path for automatic v1 OTA hot pushes.
803 #[arg(long)]
804 watch_ota: Option<PathBuf>,
805 /// Emit `Cross-Origin-Opener-Policy` and `Cross-Origin-Embedder-Policy` headers for SharedArrayBuffer / WASM threads.
806 #[arg(long, default_value_t = false)]
807 coop_coep: bool,
808 /// Logical project identifier used by the embedded v1 OTA server.
809 #[arg(long, default_value = DEFAULT_UPDATE_PROJECT)]
810 project: String,
811 /// Release channel name used by the embedded v1 OTA server.
812 #[arg(long, default_value = DEFAULT_DEV_UPDATE_CHANNEL)]
813 channel: String,
814 /// Optional HMAC-SHA256 signing secret for the embedded v1 OTA server.
815 #[arg(long)]
816 signing_key: Option<String>,
817 /// File watcher debounce interval in milliseconds before starting a rebuild.
818 #[arg(long, default_value_t = DEFAULT_DEV_DEBOUNCE_MS)]
819 debounce_ms: u64,
820 /// Print the structured dev server plan without spawning processes.
821 #[arg(long, default_value_t = false)]
822 plan: bool,
823 /// Emit machine-readable JSON output.
824 #[arg(long, default_value_t = false)]
825 json: bool,
826 },
827 /// Manages the Hyperlane HTTP + SSE dynamic update server and atomic local release store (`serve`, `stage`, `publish`, `rollback`, `status`, `push`, `watch`, `init`, `keygen`, `build`, `dev`, `verify`, `diff`, `gc`).
828 Update {
829 /// Dynamic update server or store management subcommand.
830 #[command(subcommand)]
831 action: UpdateAction,
832 },
833 /// Builds or live-serves a static or multi-locale WASM documentation site from project `.md` files.
834 Docs {
835 /// Optional `build` or `dev` subcommand (defaults to building all project `.md` files).
836 #[command(subcommand)]
837 action: Option<DocsAction>,
838 /// Shared source, output, title, base URL, and WASM flags.
839 #[command(flatten)]
840 build: DocsBuildArgs,
841 /// Enable live watch and SSE hot-reload dev server directly from `euv docs --watch`.
842 #[arg(short = 'w', long, default_value_t = false)]
843 watch: bool,
844 /// Shared dev server bind, poll interval, and smoke-run flags when `--watch` is active.
845 #[command(flatten)]
846 server: ServerBindArgs,
847 },
848 /// Builds native, mobile, simulator, terminal, wearable, HarmonyOS, Mini-Program, QuickApp, or Web bundles for one, multiple, or all targets.
849 Build {
850 /// Target platform(s) or group(s) (repeatable and comma-separated, e.g. `--target web,android,macos`).
851 #[arg(long, value_enum, value_delimiter = ',', action = ArgAction::Append)]
852 target: Vec<TargetArg>,
853 /// Shorthand for `--target all` across every supported production platform.
854 #[arg(long, default_value_t = false)]
855 all: bool,
856 /// Print the target readiness table for the current host and exit without building.
857 #[arg(long, default_value_t = false)]
858 list_targets: bool,
859 /// Optional Cargo package name to build.
860 #[arg(short = 'p', long)]
861 package: Option<String>,
862 /// Optional output directory for packaged artifacts.
863 #[arg(long)]
864 out_dir: Option<PathBuf>,
865 /// Optional exact output file path (e.g. APK path for single-file artifacts).
866 #[arg(long)]
867 out_file: Option<PathBuf>,
868 /// Optional archive file path (`.tar.gz` or `.zip`) packing the staged output directory.
869 #[arg(long)]
870 archive: Option<PathBuf>,
871 /// Optional asset URL base prefix for Web bundles (e.g. `./` or `/euv/`).
872 #[arg(long)]
873 base: Option<String>,
874 /// Skip targets whose required host OS or SDK toolchain is unavailable instead of aborting.
875 #[arg(long, default_value_t = false)]
876 skip_unavailable: bool,
877 /// Execute independent target builds in parallel across worker threads.
878 #[arg(long, default_value_t = false)]
879 parallel: bool,
880 /// Maximum concurrent target build jobs when `--parallel` is active.
881 #[arg(short = 'j', long)]
882 jobs: Option<usize>,
883 /// Emit a deterministic SHA-256 `euv-release.json` artifact inventory after building.
884 #[arg(long, default_value_t = false)]
885 manifest: bool,
886 /// Verify generated bundle integrity, SHA-256 manifest, zero-JS rules, and release AI-schema stripping.
887 #[arg(long, default_value_t = false)]
888 verify: bool,
889 /// Emit raw `.wasm` + icons + `build-plan.json` without running `wasm-bindgen-cli`.
890 #[arg(long, default_value_t = false)]
891 raw_wasm: bool,
892 /// Skip optional binaryen `wasm-opt` size optimization on Web builds.
893 #[arg(long, default_value_t = false)]
894 skip_wasm_opt: bool,
895 /// Build all compiled theme variants (`default` + `theme-*` features) for Web targets.
896 #[arg(long, default_value_t = false)]
897 theme_variants: bool,
898 /// Skip automatic simulator/emulator launch after mobile builds.
899 #[arg(long, default_value_t = false)]
900 no_launch: bool,
901 /// Install the built mobile/wearable/Harmony bundle onto a connected device or emulator.
902 #[arg(long, default_value_t = false)]
903 install: bool,
904 /// Run a headless smoke verification (`--headless --software`) after building native binaries.
905 #[arg(long, default_value_t = false)]
906 smoke: bool,
907 /// Include the `euv` CLI binary alongside the app binary in desktop bundles.
908 #[arg(long, default_value_t = false)]
909 include_cli: bool,
910 /// Explicit semantic version override (defaults to workspace `Cargo.toml` version).
911 #[arg(long)]
912 version: Option<String>,
913 /// Target native ABIs (repeatable/comma-separated, e.g. `--abi arm64-v8a,x86_64`).
914 #[arg(long, value_delimiter = ',', action = ArgAction::Append)]
915 abi: Vec<String>,
916 /// Additional Cargo feature flags to enable (repeatable/comma-separated).
917 #[arg(long, value_delimiter = ',', action = ArgAction::Append)]
918 features: Vec<String>,
919 /// Optional device or simulator identifier for `--install` or launch steps.
920 #[arg(long)]
921 device: Option<String>,
922 /// Optional custom PNG icon source path replacing the default euv brand mark.
923 #[arg(long)]
924 icon: Option<PathBuf>,
925 /// Optional HarmonyOS device form factor (`phone`, `tablet`, `pc`, `foldable`, `tv`, `car`, `wearable`).
926 #[arg(long, value_enum, default_value_t = HarmonyFormFactorArg::Phone)]
927 form_factor: HarmonyFormFactorArg,
928 /// Rendering pipeline mode override (defaults to `hardware` on Apple mobile/watch targets and `auto` elsewhere).
929 #[arg(long, value_enum)]
930 render: Option<RenderArg>,
931 /// Enable release optimization profile.
932 #[arg(long, default_value_t = false)]
933 release: bool,
934 /// Print structured JSON build plans without executing.
935 #[arg(long, default_value_t = false)]
936 plan: bool,
937 /// Emit machine-readable JSON output.
938 #[arg(long, default_value_t = false)]
939 json: bool,
940 },
941 /// Checks Rust compilation across one, multiple, or all cross-platform targets.
942 Check {
943 /// Check all supported platform targets in sequence.
944 #[arg(long, default_value_t = false)]
945 all_targets: bool,
946 /// Target platform(s) or group(s) to check (repeatable and comma-separated).
947 #[arg(long, value_enum, value_delimiter = ',', action = ArgAction::Append)]
948 target: Vec<TargetArg>,
949 /// Treat Rust compiler warnings as errors (`RUSTFLAGS="-D warnings"`).
950 #[arg(long, default_value_t = false)]
951 deny_warnings: bool,
952 /// Optional Cargo package name(s) to check (repeatable and comma-separated).
953 #[arg(short = 'p', long, value_delimiter = ',', action = ArgAction::Append)]
954 package: Vec<String>,
955 /// Print the planned commands without running Cargo.
956 #[arg(long, default_value_t = false)]
957 plan: bool,
958 /// Emit machine-readable JSON output.
959 #[arg(long, default_value_t = false)]
960 json: bool,
961 },
962 /// Runs unified `crate-cli` text/Rust formatting first, then normalizes indentation inside all `euv` macro blocks (`view!`, `style!`, etc.).
963 Fmt {
964 /// Verify formatting without modifying files.
965 #[arg(long, default_value_t = false)]
966 check: bool,
967 /// Optional root directory or file path (defaults to current directory).
968 #[arg(long)]
969 path: Option<PathBuf>,
970 /// Format only `euv` procedural macro bodies without invoking `crate-cli` or `cargo fmt`.
971 #[arg(long, default_value_t = false)]
972 macros_only: bool,
973 },
974 /// Inspects installed Rust targets, SDKs, and cross-platform tooling readiness.
975 Doctor {
976 /// Automatically install missing `rustup` targets applicable to this host OS.
977 #[arg(long, default_value_t = false)]
978 fix: bool,
979 /// Display the expanded per-target readiness matrix and install hints.
980 #[arg(long, default_value_t = false)]
981 targets: bool,
982 /// Emit machine-readable JSON output.
983 #[arg(long, default_value_t = false)]
984 json: bool,
985 },
986 /// Scaffolds a new cross-platform euv native project using keyless `style!` and `view!`.
987 New {
988 /// Name of the new project directory and crate.
989 name: String,
990 /// Optional parent directory (defaults to current working directory).
991 #[arg(long)]
992 path: Option<PathBuf>,
993 /// Project template preset (`app`, `web`, `dynamic-widget`, `docs`).
994 #[arg(long, value_enum, default_value_t = ProjectTemplateArg::App)]
995 template: ProjectTemplateArg,
996 /// Optional reverse-DNS mobile/desktop bundle identifier (e.g. `com.example.myapp`).
997 #[arg(long)]
998 bundle_id: Option<String>,
999 /// Emit machine-readable JSON output.
1000 #[arg(long, default_value_t = false)]
1001 json: bool,
1002 },
1003 /// Displays the per-target buildability matrix and required SDKs for the current host.
1004 Targets {
1005 /// Optional target or group filter(s) (repeatable and comma-separated).
1006 #[arg(long, value_enum, value_delimiter = ',', action = ArgAction::Append)]
1007 target: Vec<TargetArg>,
1008 /// Show only targets that are ready to build on the current host.
1009 #[arg(long, default_value_t = false)]
1010 ready_only: bool,
1011 /// Emit machine-readable JSON output.
1012 #[arg(long, default_value_t = false)]
1013 json: bool,
1014 },
1015 /// Cleans generated bundles (`dist/`), mobile host caches, icon caches, and stale OTA staging directories.
1016 Clean {
1017 /// Also invoke `cargo clean` for the current workspace or project.
1018 #[arg(long, default_value_t = false)]
1019 all: bool,
1020 /// Optional project root directory (defaults to current working directory).
1021 #[arg(long)]
1022 path: Option<PathBuf>,
1023 /// Preview directories and bytes to reclaim without deleting files.
1024 #[arg(long, default_value_t = false)]
1025 dry_run: bool,
1026 /// Emit machine-readable JSON output.
1027 #[arg(long, default_value_t = false)]
1028 json: bool,
1029 },
1030 /// Generates shell tab-completion scripts (`bash`, `zsh`, `fish`, `powershell`) for all `euv` subcommands and targets.
1031 Completions {
1032 /// Target shell dialect.
1033 #[arg(value_enum)]
1034 shell: ShellKindArg,
1035 },
1036 /// Queries a live `DevAutomationBridge` for AI Schema / 9-rule layout anomalies or audits a local `dist/` artifact directory.
1037 Inspect {
1038 /// Live `DevAutomationBridge` base HTTP URL.
1039 #[arg(long, default_value = DEFAULT_INSPECT_URL)]
1040 url: String,
1041 /// Local build output directory to audit (`euv-release.json`, SHA-256 integrity, zero-JS check, sizes).
1042 #[arg(long)]
1043 dist: Option<PathBuf>,
1044 /// Focus output on 9-rule layout anomalies returned by the live automation bridge.
1045 #[arg(long, default_value_t = false)]
1046 anomalies: bool,
1047 /// Emit machine-readable JSON output.
1048 #[arg(long, default_value_t = false)]
1049 json: bool,
1050 },
1051 /// Manages Blender 4.x/5.x asset inspection, headless glTF import, `.euv3d` baking, Live-Link SSE sync, and add-on installation.
1052 Blender {
1053 /// Blender toolchain subcommand to run.
1054 #[command(subcommand)]
1055 action: BlenderAction,
1056 },
1057}