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

Function run

src/cli/setup.rs:41–51  ·  view source on GitHub ↗
(args: SetupArgs, setup_cache_dir: Option<&Path>)

Source from the content-addressed store, hash-verified

39}
40
41pub async fn run(args: SetupArgs, setup_cache_dir: Option<&Path>) -> Result<()> {
42 match args.command {
43 Some(SetupCommands::Status) => status(&args.mode),
44 #[cfg(target_os = "linux")]
45 Some(SetupCommands::MemtrackPath) => {
46 println!("{}", crate::executor::memtrack_path()?.display());
47 Ok(())
48 }
49 None => setup(&args.mode, setup_cache_dir).await,
50 }
51}
52
53/// Resolve the executors to operate on from the requested modes.
54///

Callers

nothing calls this directly

Calls 2

statusFunction · 0.70
setupFunction · 0.70

Tested by

no test coverage detected