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

Function finish_and_clear

atomic-cli/src/output/progress.rs:262–264  ·  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

260///
261/// * `pb` - The progress bar to clear
262pub fn finish_and_clear(pb: &ProgressBar) {
263 pb.finish_and_clear();
264}
265
266/// Finish a progress bar with an error message.
267///

Callers 1

test_finish_and_clearFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_finish_and_clearFunction · 0.68