feat: show all configured hosts in interactive login prompt

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

Provider Information

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

Merge request reports

Loading