(os: &mut Os)
| 254 | } |
| 255 | |
| 256 | pub async fn profile(os: &mut Os) -> Result<ExitCode> { |
| 257 | if let Ok(Some(token)) = BuilderIdToken::load(&os.database, Some(&os.telemetry)).await { |
| 258 | if matches!(token.token_type(), TokenType::BuilderId) { |
| 259 | bail!("This command is only available for Pro users"); |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | select_profile_interactive(os, false).await?; |
| 264 | |
| 265 | Ok(ExitCode::SUCCESS) |
| 266 | } |
| 267 | |
| 268 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
| 269 | enum AuthMethod { |
no test coverage detected