feat: allow reuse of glab in other CLI contexts
Created by: addshore
Description
Moves glinstance into pkg for use by other projects.
Uses OverridableDefault hostname in auth login
command.
Related Issue Resolves #843 (closed)
How Has This Been Tested?
- Tested the build which still works.
- Tested the code change included in the mwcli.
Screenshots (if appropriate):
Usage in the other CLI can be found in https://phabricator.wikimedia.org/T288373#7376987 Code change for the other CLI can be found at https://gitlab.wikimedia.org/releng/cli/-/merge_requests/47
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)