Function
run
(
args: AuthArgs,
api_client: &CodSpeedAPIClient,
config_name: Option<&str>,
config: CodSpeedConfig,
)
Source from the content-addressed store, hash-verified
| 36 | } |
| 37 | |
| 38 | pub 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 | |
| 53 | const LOGIN_SESSION_MAX_DURATION: Duration = Duration::from_secs(60 * 5); // 5 minutes |
| 54 | |
Callers
nothing calls this directly
Tested by
no test coverage detected