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

Function finish_warning

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

Finish a progress bar with a warning message. This clears the progress bar and displays a warning message in yellow. # Arguments `pb` - The progress bar to finish `message` - The warning message to display

(pb: &ProgressBar, message: &str)

Source from the content-addressed store, hash-verified

266/// * `pb` - The progress bar to finish
267/// * `message` - The warning message to display
268pub fn finish_warning(pb: &ProgressBar, message: &str) {
269 pb.set_style(warning_style());
270 pb.finish_with_message(message.to_string());
271 emit_if_hidden(pb, "⚠", message);
272}
273
274/// Finish and completely clear a progress bar from the terminal.
275///

Callers 1

test_finish_warningFunction · 0.85

Calls 2

warning_styleFunction · 0.85
emit_if_hiddenFunction · 0.85

Tested by 1

test_finish_warningFunction · 0.68