1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// SPDX-License-Identifier: Apache-2.0
//! Command dispatch root for the `alp` CLI: declares the per-command sub-modules
//! and the shared `CommandRun` result every command's `run` returns.
use crateExitCode;
/// Uniform outcome of running a command: exit code plus the human/JSON output split.
/// `alp bootstrap` — per-OS toolchain/SDK bootstrap orchestration.
/// `alp build` (and `image`/`flash`/`clean`/`renode`) — `west` build workflows.
/// `alp completion` — shell completion script generation.
/// `alp debug-config` — debug/launch configuration drafting.
/// `alp diff` — show how `board.yaml` normalization changes the effective config.
/// `alp doctor` — diagnose debug readiness (`--build` runs the build-readiness preflight).
/// `alp explain` — explain a project/module template or a generation target.
/// `alp generate` — Zephyr conf / DTS overlay / CMake args / Yocto conf codegen.
/// `alp init` — new-project scaffolding (including heterogeneous cores).
/// `alp inspect` — inspect resolved project/debug context values.
/// `alp presets` — list SDK presets (SKUs/SoMs, carriers) + built-in catalogue defaults.
/// `alp scaffold` — scaffold a module into an existing project.
/// `alp sdk` — SDK release listing/management.
/// `alp support-bundle` — collect a diagnostics support bundle.
/// `alp trace` — trace the generation decisions a build would make.
/// `alp validate` — schema-aware `board.yaml` validation.