From 7ed425683daa38c6b0543ef04612b1f026579c17 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 1 May 2026 23:43:14 +0300 Subject: [PATCH] cli: flush credential verification prompts Signed-off-by: NotAShelf Change-Id: Icbca98ba56bc30e85d0f3972af616ca96a6a6964 --- src/cli/commands/credentials_set.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cli/commands/credentials_set.rs b/src/cli/commands/credentials_set.rs index 0945309..d45f27c 100644 --- a/src/cli/commands/credentials_set.rs +++ b/src/cli/commands/credentials_set.rs @@ -1,4 +1,4 @@ -use std::time::Duration; +use std::{io::Write, time::Duration}; use crate::{ error::{PakkerError, Result}, @@ -56,6 +56,7 @@ pub async fn execute( if let Some(ref key) = cf_key { print!("Verifying CurseForge API key... "); + std::io::stdout().flush().ok(); match verify_curseforge(&client, key).await { Ok(()) => { println!("valid"); @@ -76,6 +77,7 @@ pub async fn execute( if let Some(ref token) = mr_token { print!("Verifying Modrinth token... "); + std::io::stdout().flush().ok(); match verify_modrinth(&client, token).await { Ok(()) => { println!("valid"); @@ -96,6 +98,7 @@ pub async fn execute( if let Some(ref token) = gh_token { print!("Verifying GitHub access token... "); + std::io::stdout().flush().ok(); match verify_github(&client, token).await { Ok(()) => { println!("valid");