start adding more status lines

This commit is contained in:
2025-11-14 15:23:04 +04:00
parent 632fdeb867
commit 79f5e52a73
4 changed files with 168 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ use crate::{
nix_path, pad_string,
};
static DOWNLOAD_CHAR: LazyLock<String> = LazyLock::new(|| "#".blue().bold().to_string());
static DOWNLOAD_CHAR: LazyLock<String> = LazyLock::new(|| "-".blue().bold().to_string());
static DONE_CHAR: LazyLock<String> = LazyLock::new(|| "#".green().bold().to_string());
const INFO_WIDTH: usize = 13;
@@ -29,7 +29,6 @@ impl Handler for SubstituteHandler {
id,
..
} => {
state.println(format!("Substituting {} -> {}", source, target))?;
state.plug(CopyHandler(*id));
// Handle global start action
Ok(true)
@@ -58,10 +57,6 @@ impl Handler for CopyHandler {
parent,
..
} if parent == &self.0 => {
state.println(format!(
"Copying {} <- {} (from {})",
destination, path, origin
))?;
let bar = state.add_pb(ProgressBar::new(1));
state.plug(DownloadHandler::new(
state.term_width,
@@ -228,9 +223,7 @@ impl Handler for DownloadHandler {
parent,
..
} if parent == &self.copy_id => {
state.println(format!("Downloading {}", target))?;
self.id = *id;
// Handle global start action
Ok(true)
}
Action::Result {