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

Function finish_warning

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

247/// * `pb` - The progress bar to finish
248/// * `message` - The warning message to display
249pub fn finish_warning(pb: &ProgressBar, message: &str) {
250 pb.set_style(warning_style());
251 pb.finish_with_message(message.to_string());
252}
253
254/// Finish and completely clear a progress bar from the terminal.
255///

Callers 1

test_finish_warningFunction · 0.85

Calls 1

warning_styleFunction · 0.85

Tested by 1

test_finish_warningFunction · 0.68