Skip to content

Commit

Permalink
chg: not output progressbar when default timeline cmd option
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Nov 25, 2024
1 parent 064b05b commit f3aed72
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,20 @@ impl App {
style("Scanning finished.\n").color256(214).to_string()
};
// Convert the ColoredString to a String before passing it
pb.finish_with_message(msg);
if is_show_progress {
pb.finish_with_message(msg);
} else {
write_color_buffer(
&BufferWriter::stdout(ColorChoice::Always),
get_writable_color(
Some(Color::Rgb(255, 175, 0)),
stored_static.common_options.no_color,
),
"Scanning finished.",
true,
)
.ok();
}

// output afterfact
if stored_static.is_low_memory {
Expand Down

0 comments on commit f3aed72

Please sign in to comment.