Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDefaultConfig ¶
func CreateDefaultConfig() error
CreateDefaultConfig creates a new ask.yaml in the current directory
Types ¶
type Config ¶
type Config struct {
Version string `yaml:"version"`
Skills []string `yaml:"skills,omitempty"` // Legacy: simple list of skill names
SkillsInfo []SkillInfo `yaml:"skills_info,omitempty"` // New: skills with metadata
Sources []Source `yaml:"sources,omitempty"`
}
Config represents the structure of ask.yaml
func LoadConfig ¶
LoadConfig loads the current ask.yaml configuration
func (*Config) AddSkillInfo ¶
AddSkillInfo adds a skill with metadata to the configuration
func (*Config) GetSkillInfo ¶
GetSkillInfo returns skill info by name
func (*Config) RemoveSkill ¶
RemoveSkill removes a skill from the configuration
Click to show internal directories.
Click to hide internal directories.