MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / finish_and_clear

Function finish_and_clear

atomic-cli/src/output/progress.rs:282–284  ·  view source on GitHub ↗

Finish and completely clear a progress bar from the terminal. Unlike `finish_success`/`finish_error`, this removes the progress bar entirely without leaving a message. # Arguments `pb` - The progress bar to clear

(pb: &ProgressBar)

Source from the content-addressed store, hash-verified

280///
281/// * `pb` - The progress bar to clear
282pub fn finish_and_clear(pb: &ProgressBar) {
283 pb.finish_and_clear();
284}
285
286/// Finish a progress bar with an error message.
287///

Callers 1

test_finish_and_clearFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_finish_and_clearFunction · 0.68