deb: change ui/ux of pkh deb
CI / build (push) Successful in 2m54s
CI / test (push) Skipped
CI / snap (push) Failing after 12s

This commit is contained in:
2026-08-22 22:26:20 +02:00
parent e2d201d815
commit e5adf600c3
16 changed files with 1899 additions and 199 deletions
+10
View File
@@ -1,3 +1,11 @@
//! Terminal UI helpers: progress bars, interactive prompts and live build
//! views.
/// Live build view for `pkh deb` (status bar + rolling log pane)
pub mod deb;
/// Line classifiers rewriting raw subprocess output for the live views
pub mod logfmt;
use crossterm::{
cursor, event, execute,
style::{self, Color, Print, SetForegroundColor},
@@ -7,6 +15,8 @@ use indicatif::{MultiProgress, ProgressBar, ProgressStyle};
use std::io::{self, Write};
use std::time::Duration;
/// Create a spinner-style progress bar attached to `multi`, returning the bar
/// and a callback compatible with [`crate::ProgressCallback`]
pub fn create_progress_bar(
multi: &MultiProgress,
) -> (ProgressBar, impl Fn(&str, &str, usize, usize) + '_) {