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

Function run

src/cli/profile.rs:41–56  ·  view source on GitHub ↗
(
    args: ProfileArgs,
    config_name: Option<&str>,
    selected_profile: Option<&str>,
)

Source from the content-addressed store, hash-verified

39}
40
41pub fn run(
42 args: ProfileArgs,
43 config_name: Option<&str>,
44 selected_profile: Option<&str>,
45) -> Result<()> {
46 match args.command {
47 ProfileCommands::List => list(config_name),
48 ProfileCommands::Show { name } => show(config_name, name.as_deref().or(selected_profile)),
49 ProfileCommands::Set {
50 name,
51 api_url,
52 upload_url,
53 } => set(config_name, &name, api_url, upload_url),
54 ProfileCommands::Use { name } => use_profile(config_name, &name),
55 }
56}
57
58fn list(config_name: Option<&str>) -> Result<()> {
59 let config =

Callers

nothing calls this directly

Calls 4

listFunction · 0.85
showFunction · 0.85
setFunction · 0.85
use_profileFunction · 0.85

Tested by

no test coverage detected