Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigNotFound = errors.New("configuration file not found")
Functions ¶
func ParseSecrets ¶
ParseSecrets parses a newline-separated list of key=value pairs into a map. Empty lines and lines without '=' are ignored.
func SaveConfig ¶
SaveConfig writes the configuration to the specified directory.
Types ¶
type Config ¶
type Config struct {
DefaultProvider string `yaml:"default_provider"`
Providers map[string]Provider `yaml:"providers"`
}
Config represents the application configuration.
func LoadConfig ¶
LoadConfig reads and parses the configuration file from the specified directory. Returns ErrConfigNotFound if the file doesn't exist.
Click to show internal directories.
Click to hide internal directories.