package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: May 19, 2026
License: MIT
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
¶
Package config loads + writes the CLI config at ~/.getdebug/config.json.
Path returns the path to the on-disk config file (creating parent dirs if missing).
Save writes the config atomically, mode 0600.
type Config struct {
APIBaseURL string `json:"apiBaseUrl,omitempty"`
Token string `json:"token,omitempty"`
UserEmail string `json:"userEmail,omitempty"`
}
Config holds the CLI's persistent state. Tokens live here; the user can
delete the file to log out.
Load reads the config. Returns an empty Config (not an error) when the file
doesn't exist — the caller decides whether that's a problem.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.