create_spinner

Function create_spinner 

Source
pub fn create_spinner(
    message: String,
    insert_at_position: Option<usize>,
    len: Option<u64>,
) -> ProgressBar
Expand description

Creates a spinner progress bar with a message for visualizing operations like fetching.

This is a utility function to standardize the creation of progress spinners across different operations such as fetching indexes, manifests, and configs.

§Arguments

  • message - The message to display next to the spinner
  • insert_at_position - Optional position to insert the spinner at in the multi-progress display

§Returns

An Option containing the progress bar, or None if the cli feature is not enabled