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", "label": "Build Project",
"type": "cargo", "type": "cargo",
"command": "build", "command": "build",
"presentation": { // "presentation": {
"reveal": "silent" // "reveal": "silent"
}, // },
"problemMatcher": "$rustc", "problemMatcher": "$rustc",
"group": "build" "group": "build"
}, },

View file

@ -118,13 +118,6 @@ fn main() {
Err(e) => error!("error: {e:?}"), // HACK handle errors better Err(e) => error!("error: {e:?}"), // HACK handle errors better
Ok(true) => { Ok(true) => {
info!("all uploads done"); 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; break;
} }
_ => (), _ => (),
@ -139,4 +132,18 @@ fn main() {
}); });
check_ctrlc(); 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()
);
} }