Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveProfile ¶
SaveProfile writes the profile to configDir/profile.yaml.
Types ¶
type Config ¶
type Config struct {
CompanyRepo string `yaml:"company_repo,omitempty"`
Language string `yaml:"language,omitempty"` // e.g. "de"; empty = auto-detect from locale
Location string `yaml:"location,omitempty"`
Sync SyncConfig `yaml:"sync"`
Tip TipConfig `yaml:"tip,omitempty"`
Events EventsConfig `yaml:"events,omitempty"`
Tutorial TutorialConfig `yaml:"tutorial,omitempty"`
ExperienceLevel string `yaml:"experience_level,omitempty"`
Service ServiceConfig `yaml:"service,omitempty"`
Tray TrayConfig `yaml:"tray,omitempty"`
}
Config holds user-level tool configuration from ~/.config/sap-devs/config.yaml.
type EventsConfig ¶
type EventsConfig struct {
LocalRadius int `yaml:"local_radius,omitempty"`
RegionalRadius int `yaml:"regional_radius,omitempty"`
NotifyDays int `yaml:"notify_days,omitempty"`
NotifyMethod string `yaml:"notify_method,omitempty"`
}
EventsConfig controls event filtering and notification behaviour.
func (EventsConfig) EffectiveLocalRadius ¶
func (e EventsConfig) EffectiveLocalRadius() int
func (EventsConfig) EffectiveNotifyDays ¶
func (e EventsConfig) EffectiveNotifyDays() int
func (EventsConfig) EffectiveRegionalRadius ¶
func (e EventsConfig) EffectiveRegionalRadius() int
type Profile ¶
type Profile struct {
ID string `yaml:"id"`
}
Profile holds the user's active developer persona.
func LoadProfile ¶
LoadProfile reads profile.yaml from configDir. Returns empty profile if file does not exist.
type ServiceConfig ¶
ServiceConfig controls the OS-native background scheduler.
type SyncConfig ¶
type SyncConfig struct {
Tips time.Duration `yaml:"tips"`
Tools time.Duration `yaml:"tools"`
Advocates time.Duration `yaml:"advocates"`
Resources time.Duration `yaml:"resources"`
Context time.Duration `yaml:"context"`
MCP time.Duration `yaml:"mcp"`
Events time.Duration `yaml:"events"`
YouTube time.Duration `yaml:"youtube"`
News time.Duration `yaml:"news"`
Discovery time.Duration `yaml:"discovery"`
Tutorials time.Duration `yaml:"tutorials"`
Learning time.Duration `yaml:"learning"`
Disabled bool `yaml:"disabled"`
}
SyncConfig controls per-category TTLs for background content refresh.
type TipConfig ¶
type TipConfig struct {
Rotation string `yaml:"rotation,omitempty"` // "daily" | "hourly" | "session"; empty = "daily"
}
TipConfig controls tip display behaviour.
type TrayConfig ¶
type TrayConfig struct {
Autostart bool `yaml:"autostart,omitempty"`
Theme string `yaml:"theme,omitempty"`
}
TrayConfig controls the optional GUI tray companion.
type TutorialConfig ¶
type TutorialConfig struct {
Interactive bool `yaml:"interactive,omitempty"`
}
TutorialConfig controls tutorial display behaviour.
Click to show internal directories.
Click to hide internal directories.