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

Method start

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

Source from the content-addressed store, hash-verified

8
9impl Progress {
10 pub fn start(msg: impl Into<Cow<'static, str>>) -> Progress {
11 let bar = if is_stdout_tty() {
12 Some(show_progress(msg))
13 } else {
14 println!("▹▹▹▹▹ {}", msg.into());
15 None
16 };
17 Progress { bar }
18 }
19
20 pub fn finish(&self, msg: &str) {
21 if let Some(bar) = &self.bar {

Callers 6

runFunction · 0.80
start_serverFunction · 0.80
schedule_invocationFunction · 0.80
init_schedulerFunction · 0.80
start_schedulerFunction · 0.80
spawn_function_instanceFunction · 0.80

Calls 2

is_stdout_ttyFunction · 0.85
show_progressFunction · 0.85

Tested by

no test coverage detected