[feat] enhance progress logging, introduce TTY-aware banners, and implement hardened SHA-256 verification for model downloads

This commit is contained in:
2025-08-12 04:10:24 +02:00
parent 37c43161da
commit e954902aa9
3 changed files with 206 additions and 2 deletions

View File

@@ -313,6 +313,11 @@ fn run() -> Result<()> {
// Route subsequent INFO/WARN/DEBUG logs through the cliclack/indicatif area
polyscribe::progress::set_global_progress_manager(&pm);
// Show a friendly intro banner (TTY-aware via cliclack). Ignore errors.
if !polyscribe::is_quiet() {
let _ = cliclack::intro("PolyScribe");
}
// Determine formats
let out_formats = if args.out_format.is_empty() {
OutputFormats::all()
@@ -487,6 +492,15 @@ fn run() -> Result<()> {
if had_error { polyscribe::elog!("One or more inputs failed"); }
}
// Outro banner summarizing result; ignore errors.
if !polyscribe::is_quiet() {
if had_error {
let _ = cliclack::outro("Completed with errors. Some inputs failed.");
} else {
let _ = cliclack::outro("All done. Outputs written.");
}
}
if had_error { std::process::exit(2); }
let _elapsed = start_overall.elapsed();
Ok(())