feat: show all configured hosts in interactive login prompt
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
Description
This fix ensures that the interactive auth login does list all configured hosts.
Before this chage the list only showed:
$ glab auth login
? What GitLab instance do you want to sign in to? [Use arrows to move, type to filter]
> gitlab.com
GitLab Self-Managed or GitLab Dedicated instance
and did miss any existing hosts from the config.
after:
$ glab auth login
? What GitLab instance do you want to sign in to? [Use arrows to move, type to filter]
> gitlab.com
example.self.hosted.local
GitLab Self-Managed or GitLab Dedicated instance
Markus Sattler markus.sattler@mercedes-benz.com, Mercedes-Benz Tech Innovation GmbH
Related Issues
How has this been tested?
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap
Edited by Timo Furrer