Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,20 @@ test:
build:
cargo build -q -p {{CLI_PKG}} --release --locked {{CARGO_FLAGS}}

lowell *ARGS:
cargo run -p {{CLI_PKG}} --release -- {{ARGS}}

# --- Inspect helpers --------------------------------------------------------

# Run: just inspect ../uki-out/vmlinuz-virt.efi
inspect uki: build
{{BIN}} --log-level {{RUST_LOG}} inspect uki --file {{uki}}

# Run: just inspect-json ../uki-out/vmlinuz-virt.efi
inspect-json uki: build
{{BIN}} --log-level {{RUST_LOG}} inspect uki --file {{uki}} --format json
uki-inspect uki *ARGS: build
{{BIN}} --log-level {{RUST_LOG}} uki inspect {{uki}} {{ARGS}}

# Use UKI_PATH from env/.env:
# echo 'UKI_PATH=../uki-out/vmlinuz-virt.efi' > .env
# just inspect-env
inspect-env: build
{{BIN}} --log-level {{RUST_LOG}} inspect uki --file "${UKI_PATH:?Set UKI_PATH in env or .env}"
uki-inspect-env: build
{{BIN}} --log-level {{RUST_LOG}} uki inspect "${UKI_PATH:?Set UKI_PATH in env or .env}"

# --- CI aggregate -----------------------------------------------------------

Expand All @@ -88,5 +87,5 @@ smoke uki='':
# quick, release-mode JSON inspect (good for timing locally)
# just fast ../uki-out/vmlinuz-virt.efi
fast uki: build
{{BIN}} --log-level {{RUST_LOG}} inspect uki --file {{uki}} --json
{{BIN}} --log-level {{RUST_LOG}} uki inspect {{uki}} --format json

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Still under early active development:

* **Works today**

* CLI: `lowell inspect uki --file /path/to/vmlinuz.efi`
* Flags: `--format json|human`, `--verbose`, global `--log-level {error|warn|info|debug|trace}`
* CLI: `lowell uki inspect /path/to/vmlinuz.efi`
* Flags: `--format human|json|json-pretty`, `--verbose`, global `--log-level {error|warn|info|debug|trace}`
* Reports:
* `arch`, `pe32_plus`
* Signature presence and `cert_count`
Expand All @@ -29,8 +29,8 @@ Still under early active development:

* **Planned next**

* `lowell inject uki` — modify initramfs and rebuild a UKI
* `lowell build` — hermetic initramfs + UKI, using OCI-pinned inputs where it helps
* `lowell uki inject` — modify initramfs and rebuild a UKI
* `lowell uki build` — hermetic initramfs + UKI, using OCI-pinned inputs where it helps

## Documentation

Expand Down Expand Up @@ -107,7 +107,7 @@ Thanks for considering a contribution! Bug reports, docs, tests, and features ar
just build # or: cargo build --release

# run the CLI
target/release/lowell inspect uki --file /path/to/vmlinuz.efi
target/release/lowell uki inspect /path/to/vmlinuz.efi

# format, lint, test (pre-PR checklist)
cargo fmt --all
Expand Down