From 72ad76692b835a46a91519ea2590d198d1c06eb6 Mon Sep 17 00:00:00 2001 From: Eyal Sharon Date: Thu, 29 May 2025 17:26:02 +0300 Subject: [PATCH] Output the same output structure as in npx --- pr_agent/scripts/qm_endpoint_auth/gen_api_key.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/scripts/qm_endpoint_auth/gen_api_key.sh b/pr_agent/scripts/qm_endpoint_auth/gen_api_key.sh index 13afacd8..62408c5a 100644 --- a/pr_agent/scripts/qm_endpoint_auth/gen_api_key.sh +++ b/pr_agent/scripts/qm_endpoint_auth/gen_api_key.sh @@ -1,4 +1,4 @@ curl -s --no-buffer "https://api.cli.qodo.ai/v1/auth/cli-auth" | while read line; do [[ $line == data:*auth_url* ]] && open "$(echo "$line" | sed 's/.*"auth_url":"\([^"]*\)".*/\1/' | sed 's/\\//g')" - [[ $line == data:*api_key* ]] && echo "$line" && break + [[ $line == data:*api_key* ]] && echo "āœ… Authentication successful! API key saved.\nšŸ“‹ Your API key: $(echo "$line" | sed 's/.*"api_key":"\([^"]*\)".*/\1/')" && break done