show "cargo build", program completion

This commit is contained in:
Jörn-Michael Miehe 2025-06-13 23:02:41 +00:00
parent 5556a658f5
commit e2151b592c
2 changed files with 17 additions and 10 deletions

6
.vscode/tasks.json vendored
View file

@ -5,9 +5,9 @@
"label": "Build Project",
"type": "cargo",
"command": "build",
"presentation": {
"reveal": "silent"
},
// "presentation": {
// "reveal": "silent"
// },
"problemMatcher": "$rustc",
"group": "build"
},

View file

@ -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()
);
}