Implement glab context
Created by: solidnerd
@profclems It's mostly specifying a base URL for your glab or we could have a similar feature like docker context
or kubectl context
where you can specify in which config context you are currently.
Default would be gitlab.com but as a user, I could define my own context for alpine as an example:
apiVersion: alpha/v1
instances:
- alpine:
url: gitlab.alpinelinux.org
- gitlab-com:
url: gitlab.com
contexts:
- context:
instance: alpine
user: alpine
name: alpine
- context:
instance: gitlab-com
user: gitlab-user
name: default
users:
- name: alpine-user
user:
token: "abc1234"
- name: gitlab-user
user:
token: "foobar"
Here is something that comes to my mind.
Originally posted by @solidnerd in https://github.com/profclems/glab/issues/383#issuecomment-749656838
Edited by Kai Armstrong