komrad gitlab config
Print the glab config a checkout's GitLab is reached with
komrad gitlab config [flags]Print the glab config a checkout's GitLab is reached with, as glab's config.yml.
The stand-in komrad puts ahead of an agent's PATH as glab runs this for every call. --checkout names the tree it was run in, whose origin says which host to answer for. The config names that host alone, so glab hands the token to no other host. --if-configured prints nothing and succeeds when the origin is not on a connected GitLab host, which leaves glab the credential the machine was logged in with.
Flags#
| Flag | Type | Description |
|---|---|---|
--checkout | string | the checkout whose origin names the gitlab host default . |
--if-configured | bool | print nothing and succeed when the host has no gitlab connection |