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

Function run

src/cli/auth.rs:39–52  ·  view source on GitHub ↗
(
    args: AuthArgs,
    api_client: &CodSpeedAPIClient,
    config_name: Option<&str>,
    config: CodSpeedConfig,
)

Source from the content-addressed store, hash-verified

37}
38
39pub async fn run(
40 args: AuthArgs,
41 api_client: &CodSpeedAPIClient,
42 config_name: Option<&str>,
43 config: CodSpeedConfig,
44) -> Result<()> {
45 match args.command {
46 AuthCommands::Login { with_token } => {
47 login(api_client, config_name, config, with_token).await?
48 }
49 AuthCommands::Status => status(api_client, &config).await?,
50 }
51 Ok(())
52}
53
54const LOGIN_SESSION_MAX_DURATION: Duration = Duration::from_secs(60 * 5); // 5 minutes
55

Callers

nothing calls this directly

Calls 2

loginFunction · 0.85
statusFunction · 0.70

Tested by

no test coverage detected