package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Apr 18, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Dir returns the XDG-compliant config directory for the CLI.
Path returns the full path to the config file.
func ResolveCredentials() (serverURL, token string, err error)
ResolveCredentials returns the server URL and token, preferring env vars
over the config file.
Save writes credentials to the config file.
type Config struct {
Server string `json:"server"`
Token string `json:"token"`
}
Config stores CLI credentials and server URL.
Load loads credentials from the config file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.