MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / run

Function run

src/cli/show.rs:4–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2use crate::runner_mode::load_shell_session_mode;
3
4pub fn run() -> Result<()> {
5 let modes = load_shell_session_mode()?;
6
7 if modes.is_empty() {
8 info!("No mode set for this shell session");
9 } else {
10 let modes_str = modes
11 .iter()
12 .map(|m| format!("{m:?}"))
13 .collect::<Vec<_>>()
14 .join(", ");
15 info!("{modes_str}");
16 }
17
18 Ok(())
19}

Callers

nothing calls this directly

Calls 2

load_shell_session_modeFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected