[feat] enhance progress logging, introduce TTY-aware banners, and implement hardened SHA-256 verification for model downloads
This commit is contained in:
14
src/main.rs
14
src/main.rs
@@ -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(())
|
||||
|
Reference in New Issue
Block a user