refactor(extract): report extraction progress through the sink

The extraction spinner drew straight to stderr from inside the
library, so every consumer got terminal UI it never asked for.
extract_tarball and its helpers now count extracted files themselves
and emit Progress events; rendering belongs to the caller.
This commit is contained in:
2026-10-02 23:51:42 +02:00
parent d481bd9028
commit 82d2ed3382
3 changed files with 106 additions and 111 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ fn main() -> Result<()> {
arch: args.arch.clone().unwrap_or_default(),
no_cache: args.no_cache,
};
let rootfs = cache.prepare(&request)?;
let rootfs = cache.prepare(&request, &ecr::NoProgress)?;
// Branch based on --kernel flag
// Option<Option<PathBuf>> (require_equals: the value must use =PATH syntax