MCPcopy Create free account
hub / github.com/ermak-dev/cloudpub / make_spinner

Function make_spinner

client/src/base.rs:161–173  ·  view source on GitHub ↗
(msg: String)

Source from the content-addressed store, hash-verified

159}
160
161fn make_spinner(msg: String) -> ProgressBar {
162 let spinner = ProgressBar::new_spinner();
163 let style = ProgressStyle::default_spinner()
164 .template("{spinner} {msg}")
165 .unwrap();
166 #[cfg(target_os = "windows")]
167 let style = style.tick_chars("-\\|/ ");
168 spinner.set_style(style);
169 spinner.set_message(msg);
170 #[cfg(unix)]
171 spinner.enable_steady_tick(std::time::Duration::from_millis(100));
172 spinner
173}
174
175pub async fn main_loop(
176 mut cli: Cli,

Callers 1

main_loopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected