feat(cli): add interactive vendor selection for auth commands - #287
Merged
Conversation
DESU-CLUB
pushed a commit
to DESU-CLUB/pochi
that referenced
this pull request
Sep 15, 2025
…L#287) * feat(cli): add vendor selection for authentication using inquirer * fix(cli): improve error handling for logout cancellation * fix(cli): move @inquirer/select to devDependencies in package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://jam.dev/c/bc86bbbb-ae5c-42e2-ad9d-8f715d8570cd
Summary
• Add interactive vendor selection for authentication commands using inquirer
• Improve error handling for authentication cancellation scenarios
• Replace required vendor flags with user-friendly selection prompts
• Add support for showing authentication status in vendor selection
Changes
• Interactive Selection: Replace
-v, --vendorrequired option with interactive prompts using@inquirer/select• Enhanced UX: Show authentication status and user information in vendor selection
• Better Error Handling: Handle user cancellation (Ctrl+C) gracefully for both login and logout
• Smart Defaults: Auto-select single vendor when only one is available
• Improved Logout: Interactive selection from authenticated vendors with user details
Test plan
🤖 Generated with Pochi