feat: cross_reference --all --target

--target without --platform keeps every platform with the target, each narrowed to the cores it builds for it, as verify and generate_pack read --all --target. --all is accepted as the explicit whole-tree scope. Remaining CLI plurals go through count_text ("1 name", "+1 record").
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 10:30:59 +01:00
1 parent 7bc02025dc
commit 4d62c56730
7 files changed
+172 -46

No files matched your search

+2 -1
View File
@@ -35,6 +35,7 @@ sys.path.insert(0, os.path.dirname(__file__))
from core.hashing import compute_hashes, parse_sha256sums
from core.paths import REPO_ROOT
from core.sizes import size_text
from core.text import count_text
from core.upstream import UpstreamError, forge_headers, open_retrying
from core.ziptools import safe_extract_zip
from packs.parts import part_of
@@ -337,7 +338,7 @@ def show_info(platform: str, release: dict) -> None:
print(f" Platform: {pack.platform}")
print(f" File: {pack.name}")
print(f" Parts: {len(pack.parts)} part{'s' if len(pack.parts) > 1 else ''}")
print(f" Parts: {count_text(len(pack.parts), 'part')}")
print(f" Size: {pack.size:,} bytes ({size_text(pack.size)})")
for part in pack.parts:
print(f" {part['name']} ({part.get('size', 0):,} bytes)")