Documentation
¶
Overview ¶
Package userconfig manages persistent user configuration stored in ~/.manque-ai/config.yaml
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
ConfigPath returns the full path to the config file
Types ¶
type UserConfig ¶
type UserConfig struct {
Provider string `yaml:"provider,omitempty"`
APIKey string `yaml:"api_key,omitempty"`
Model string `yaml:"model,omitempty"`
}
UserConfig holds user-specific configuration
func (*UserConfig) MaskedAPIKey ¶
func (c *UserConfig) MaskedAPIKey() string
MaskedAPIKey returns the API key with most characters masked
func (*UserConfig) Save ¶
func (c *UserConfig) Save() error
Save writes the config to ~/.manque-ai/config.yaml
func (*UserConfig) Set ¶
func (c *UserConfig) Set(key, value string) error
Set updates a single config value
Click to show internal directories.
Click to hide internal directories.