beamcli 0.5.0

An Interface on top of the Teleport CLI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::time::Duration;

use indicatif::{ProgressBar, ProgressStyle};

pub fn get_spinner() -> ProgressBar {
    let spinner = ProgressBar::new_spinner();
    spinner.enable_steady_tick(Duration::from_millis(80));
    spinner.set_style(
        ProgressStyle::with_template("{spinner:.blue} {msg}")
            .unwrap()
            .tick_strings(&["", "", "", "", "", "", "", "", "", ""]),
    );
    spinner
}