Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveProfile ¶
SaveProfile persists the profile to disk, merging non-zero fields with the existing configuration to avoid overwriting unrelated settings.
Types ¶
type Profile ¶
type Profile struct {
BaseURL string `json:"baseURL"`
APIKey string `json:"apiKey"`
// Lang controls the CLI output language: "en" (default) or "zh".
Lang string `json:"lang,omitempty"`
}
Profile holds all persistent CLI settings.
func LoadProfile ¶
LoadProfile reads the profile from disk. Missing file returns an empty Profile without error.
Click to show internal directories.
Click to hide internal directories.