pub fn custom_progress(
total: u64,
template: &str,
verbosity: Verbosity,
) -> ProgressBarExpand description
Create a generic progress bar with custom template.
For specialized use cases not covered by the predefined helpers.
§Arguments
total- Total number of items/iterationstemplate- Custom template string (see indicatif documentation)verbosity- Verbosity level to respect
§Returns
A configured progress bar, or hidden bar if progress shouldn’t be shown.
§Examples
use oxigaf_cli::progress;
use oxigaf_cli::verbosity::Verbosity;
let pb = progress::custom_progress(
1000,
"{spinner:.green} [{bar:40.cyan/blue}] {pos}/{len} iterations | {msg}",
Verbosity::Normal,
);