Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
SaveConfig writes the updated Config struct back to the YAML file
func SetDefaults ¶
func SetDefaults(cfg *Config)
func ValidateConfig ¶
ValidateConfig checks if the configuration values are valid
Types ¶
type Config ¶
type Config struct {
Reminder struct {
Time string `yaml:"time"`
Title string `yaml:"title"`
Message string `yaml:"message"`
} `yaml:"reminder"`
Plugins struct {
Jira struct {
Enabled bool `yaml:"enabled"`
BaseURL string `yaml:"base_url"`
} `yaml:"jira"`
GitHub struct {
Enabled bool `yaml:"enabled"`
APIToken string `yaml:"api_token"`
} `yaml:"github"`
} `yaml:"plugins"`
}
Config structure to represent the YAML config file
func LoadConfig ¶
LoadConfig reads the config.yaml file and parses it into the Config struct
Click to show internal directories.
Click to hide internal directories.