komrad

komrad gitlab config

Print the glab config a checkout's GitLab is reached with

komrad gitlab

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#

FlagTypeDescription
--checkoutstring

the checkout whose origin names the gitlab host

default .

--if-configuredbool

print nothing and succeed when the host has no gitlab connection

Inherited flags#

FlagTypeDescription
--configstringArray

path to a config TOML, repeatable, later files win over earlier ones

--enginestring

engine to reach: local for this machine, or a file in the config's engines directory, layered over the config