Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WarnWriter io.Writer = os.Stderr
WarnWriter is the destination for config warnings (e.g. unknown fields). It defaults to os.Stderr but can be overridden in tests.
Functions ¶
func RegisterFlags ¶
RegisterFlags declares persistent CLI flags on the given command. Called by cmd/root.go — no Viper dependency is exposed.
Types ¶
type AngelaConfig ¶
type Config ¶
type Config struct {
AI AIConfig `yaml:"ai"`
Angela AngelaConfig `yaml:"angela"`
Templates TemplatesConfig `yaml:"templates"`
Hooks HooksConfig `yaml:"hooks"`
Output OutputConfig `yaml:"output"`
}
func LoadFromDir ¶
LoadFromDir loads configuration from a specific directory.
type HooksConfig ¶
type HooksConfig struct {
PostCommit bool `yaml:"post_commit" mapstructure:"post_commit"`
}
type OutputConfig ¶
type TemplatesConfig ¶
type TemplatesConfig struct {
Dir string `yaml:"dir" mapstructure:"dir"`
}
Click to show internal directories.
Click to hide internal directories.