Update cli/src/commands/auth.rs

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
dal 2025-02-12 12:12:22 -08:00 committed by GitHub
parent 3aa70eaa73
commit 08134b3ba3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -94,11 +94,7 @@ pub async fn auth_with_args(args: AuthArgs) -> Result<()> {
}
if buster_creds.api_key.is_empty() {
let obfuscated_api_key = if buster_creds.api_key.is_empty() {
String::from("None")
} else {
format!("{}****", &buster_creds.api_key[..4])
};
let obfuscated_api_key = String::from("None");
let api_key_input = Password::new(&format!("Enter your API key [{obfuscated_api_key}]:"))
.without_confirmation()