Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfigDir ¶
func DefaultConfigDir() string
DefaultConfigDir returns the default glab config directory path.
Types ¶
type Credentials ¶
Credentials holds the GitLab host and token.
func ReadCredentials ¶
func ReadCredentials(configDir, host string) (*Credentials, error)
ReadCredentials reads glab credentials from the config file. If host is empty, returns the first host found (in file order). If host is specified, returns credentials for that specific host. configDir is the path to the glab config directory (e.g., ~/.config/glab-cli).
Click to show internal directories.
Click to hide internal directories.