-
Notifications
You must be signed in to change notification settings - Fork 1.3k
cli: prompt for organization on login #19107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
If the user is a member of more than one organization, let them choose one upon login, interactively.
@filiptronicek If user's network is not that good (like me), it will take seconds to get organizations, during this time, there's nothing in terminal, so I quit the process once. Could we show a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@mustard-mh this is a good one. I will add an indicator about loading and clear it right after |
Description
If the user is a member of more than one organization, let them choose one upon login, interactively.
It looks like this and can be turned off with
--non-interactive
Summary generated by Copilot
🤖[deprecated] Generated by Copilot at 2e5a95e
This pull request enhances the local app's
login
command with a new flag for non-interactive login and better error messages. It also adds a new dependency onpromptui
for interactive prompts and updates thego.mod
file accordingly.Related Issue(s)
Fixes EXP-954
How to test
Try to login on https://gitpod.io with no explicit org set.
Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold