MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / show_progress

Function show_progress

crates/cargo-lambda-interactive/src/progress.rs:43–57  ·  view source on GitHub ↗
(msg: impl Into<Cow<'static, str>>)

Source from the content-addressed store, hash-verified

41}
42
43fn show_progress(msg: impl Into<Cow<'static, str>>) -> ProgressBar {
44 let pb = ProgressBar::new_spinner();
45 pb.enable_steady_tick(Duration::from_millis(120));
46 pb.set_style(ProgressStyle::default_spinner().tick_strings(&[
47 "▹▹▹▹▹",
48 "▸▹▹▹▹",
49 "▹▸▹▹▹",
50 "▹▹▸▹▹",
51 "▹▹▹▸▹",
52 "▹▹▹▹▸",
53 "▪▪▪▪▪",
54 ]));
55 pb.set_message(msg);
56 pb
57}

Callers 1

startMethod · 0.85

Calls 1

set_messageMethod · 0.80

Tested by

no test coverage detected