Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a69644236ae18e7b46856fb6d6d6c998f8467
2.6 KiB
2.6 KiB
ROM Display Formats
Unlike prior art, ROM features several different display and legend formats as opposed to NOM's immutable design. This allows for the freedom to mix and match different component styles in the build graph.
Display Formats
ROM supports three display formats controlled by the --format
flag:
- Tree Format (Default)
- Plain Format
- Dashboard Format
1. Tree Format (Default)
The tree format shows a hierarchical dependency graph with build progress.
Usage:
rom --format tree build nixpkgs#hello
# or simply (tree is default)
rom build nixpkgs#hello
Examples
Tree Format:
┏━ Dependency Graph:
┃ ⏵ hello-2.12.2 (buildPhase) ⏱ 5s
┣━━━ Builds
┗━ ∑ ⏵ 1 │ ✔ 0 │ ✗ 0 │ ⏸ 4 │ ⏱ 5s
Plain Format:
━ ⏱ ⏸ 4 planned ↓ 2 downloading ↑ 1 uploading 5.7s
↓ breakpad-2024.02.16 1.2 MB/5.0 MB (24%)
↓ spirv-tools-1.4.321.0 0 B
↑ gcc-13.2.0 250 KB
⏵ hello-2.12.2 5s
Dashboard Format:
BUILD GRAPH: hello-2.12.2
────────────────────────────────────────────
Host │ localhost
Status │ ⏵ building
Duration │ 8.1s
────────────────────────────────────────────
Summary │ jobs=1 ok=1 failed=0 total=8.1s
Legend Styles
Legend styles control how thee build statistics are displayed at the bottom of the screen. At this moment they only affect the tree format.
- Table Style
- Compact Style
- Verbose Style
Examples
Table:
┏━ Dependency Graph:
┃ ⏵ hello-2.12.2 (buildPhase) ⏱ 5s
┣━━━ Builds
┗━ ∑ ⏵ 1 │ ✔ 0 │ ✗ 0 │ ⏸ 4 │ ⏱ 5s
Compact:
┏━ Dependency Graph:
┃ ⏵ hello-2.12.2 (buildPhase) ⏱ 5s
┗━ ⏵ 1 │ ✔ 0 │ ✗ 0 │ ⏸ 4 │ ⏱ 5s
Verbose:
┏━ Dependency Graph:
┃ ⏵ hello-2.12.2 (buildPhase) ⏱ 5s
┣━━━ Build Summary:
┗━ ⏵ 1 running │ ✔ 0 completed │ ✗ 0 failed │ ⏸ 4 planned │ ⏱ 5s
Icon Legend
All formats use consistent icons:
Icon | Meaning | Color |
---|---|---|
⏵ | Building/Running | Yellow |
✔ | Completed/Success | Green |
✗ | Failed/Error | Red |
⏸ | Planned/Waiting | Grey |
⏱ | Time/Duration | Grey |
↓ | Downloading | Blue |
↑ | Uploading | Green |