MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / profile

Function profile

crates/chat-cli/src/cli/user.rs:256–266  ·  view source on GitHub ↗
(os: &mut Os)

Source from the content-addressed store, hash-verified

254}
255
256pub 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)]
269enum AuthMethod {

Callers 3

profileMethod · 0.85
executeMethod · 0.85
highlight_promptMethod · 0.85

Calls 1

Tested by

no test coverage detected