From e2151b592c339e0b700dac89a476755c34e4e94e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Fri, 13 Jun 2025 23:02:41 +0000 Subject: [PATCH] show "cargo build", program completion --- .vscode/tasks.json | 6 +++--- src/main.rs | 21 ++++++++++++++------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 4331abb..db25719 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -5,9 +5,9 @@ "label": "Build Project", "type": "cargo", "command": "build", - "presentation": { - "reveal": "silent" - }, + // "presentation": { + // "reveal": "silent" + // }, "problemMatcher": "$rustc", "group": "build" }, diff --git a/src/main.rs b/src/main.rs index 38b799d..6f6287d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -118,13 +118,6 @@ fn main() { Err(e) => error!("error: {e:?}"), // HACK handle errors better Ok(true) => { info!("all uploads done"); - state.clear().unwrap_or_else(|e| { - eprintln!( - "{} Failed to remove {} state: {e}", - style("Warning:").red().bold(), - style("ShrUpl").yellow().bold(), - ); - }); break; } _ => (), @@ -139,4 +132,18 @@ fn main() { }); check_ctrlc(); } + + state.clear().unwrap_or_else(|e| { + eprintln!( + "{} Failed to remove {} state: {e}", + style("Warning:").red().bold(), + style("ShrUpl").yellow().bold(), + ); + }); + + println!( + "{} finished {}", + style("ShrUpl").yellow().bold(), + style("successfully!").green() + ); }