pub fn should_show_progress() -> boolExpand description
Check if progress should be shown based on cargo’s term.progress.when setting (respects CARGO_TERM_PROGRESS_WHEN environment variable).
Returns true if progress should be shown, false otherwise.
§Values
"never"- Never show progress"always"- Always show progress"auto"(default) - Show if stdout is a TTY (interactive terminal)
§Examples
use cargo_plugin_utils::should_show_progress;
if should_show_progress() {
// Show progress bar
}