show "cargo build", program completion
This commit is contained in:
parent
5556a658f5
commit
e2151b592c
2 changed files with 17 additions and 10 deletions
6
.vscode/tasks.json
vendored
6
.vscode/tasks.json
vendored
|
|
@ -5,9 +5,9 @@
|
|||
"label": "Build Project",
|
||||
"type": "cargo",
|
||||
"command": "build",
|
||||
"presentation": {
|
||||
"reveal": "silent"
|
||||
},
|
||||
// "presentation": {
|
||||
// "reveal": "silent"
|
||||
// },
|
||||
"problemMatcher": "$rustc",
|
||||
"group": "build"
|
||||
},
|
||||
|
|
|
|||
21
src/main.rs
21
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()
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue