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)
| 247 | /// * `pb` - The progress bar to finish |
| 248 | /// * `message` - The warning message to display |
| 249 | pub 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 | /// |