fn update_spinner_message(
    spinner: Option<Spinner>,
    msg: String,
    output_kind: &OutputKind,
) -> Option<Spinner> {
    if let Some(sp) = spinner {
        sp.message(msg);
        Some(sp)
    } else if output_kind == &OutputKind::Text {
        Some(Spinner::new(Spinners::Dots12, msg))
    } else {
        None
    }
}
/// Handles updating the spinner for text output
/// JSON output will be corrupted with a spinner
Handles updating the spinner for text output
JSON output will be corrupted with a spinner
Handles updating the spinner for text output JSON output will be corrupted with a spinner
fn update_spinner_message(
    spinner: Option<Spinner>,
    msg: String,
    output_kind: &OutputKind,
) -> Option<Spinner> {
    if let Some(sp) = spinner {
        sp.message(msg);
        Some(sp)
    } else if output_kind == &OutputKind::Text {
        Some(Spinner::new(Spinners::Dots12, msg))
    } else {
        None
    }
}
fn update_spinner_message ( spinner : Option < Spinner > , msg : String , output_kind : & OutputKind , ) -> Option < Spinner > { if let Some ( sp ) = spinner { sp . message ( msg ) ; Some ( sp ) } else if output_kind == & OutputKind :: Text { Some ( Spinner :: new ( Spinners :: Dots12 , msg ) ) } else { None } }
Handles updating the spinner for text output
JSON output will be corrupted with a spinner
Handles updating the spinner for text output JSON output will be corrupted with a spinner
spinner
Option<Spinner>
msg
String
output_kind
&OutputKind
spinner
Option<Spinner>
msg
String
output_kind
&OutputKind