Outcome of resolving the auth status, before rendering.
| 147 | |
| 148 | /// Outcome of resolving the auth status, before rendering. |
| 149 | struct AuthStatus { |
| 150 | session: Option<SessionPayload>, |
| 151 | /// `Some(parsed)` when we detected a git remote and tried to look it up; |
| 152 | /// the inner `Option<RepositoryOverviewPayload>` is `None` if the repo |
| 153 | /// is not on CodSpeed (or we don't have a token to verify it with). |
| 154 | detected_repository: Option<(ParsedRepository, Option<RepositoryOverviewPayload>)>, |
| 155 | } |
| 156 | |
| 157 | pub async fn status(api_client: &CodSpeedAPIClient, config: &CodSpeedConfig) -> Result<()> { |
| 158 | let has_token = config.auth.token.is_some(); |
nothing calls this directly
no outgoing calls
no test coverage detected