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

Function run

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

loginFunction · 0.85
statusFunction · 0.70

Tested by

no test coverage detected