Documentation
¶
Index ¶
- Constants
- func BaseDir() (string, error)
- func BaseSkillsDir() (string, error)
- func ConfigDir() (string, error)
- func DefaultSourceDir() (string, error)
- func ExpandPath(path string) (string, error)
- func HomeDir() (string, error)
- func ManifestPath(sourceDir string) string
- func SaveUserConfig(cfg *UserConfig) error
- func UserConfigPath() (string, error)
- type UserConfig
Constants ¶
View Source
const ( ConfigDirName = "dot-agent" ManifestName = "dot-agent.yaml" UserConfigName = "config.yaml" )
Variables ¶
This section is empty.
Functions ¶
func BaseDir ¶ added in v0.8.0
BaseDir returns ~/.dot-agent/base — the local skills library (not synced via git).
func BaseSkillsDir ¶ added in v0.8.0
func DefaultSourceDir ¶
func ExpandPath ¶
ExpandPath resolves ~ and environment variables in a path string.
func ManifestPath ¶
func SaveUserConfig ¶
func SaveUserConfig(cfg *UserConfig) error
func UserConfigPath ¶
Types ¶
type UserConfig ¶
type UserConfig struct {
SourcePath string `yaml:"source_path"`
RemoteURL string `yaml:"remote_url,omitempty"`
}
UserConfig stores local dot-agent settings (source repo path, remote URL).
func LoadUserConfig ¶
func LoadUserConfig() (*UserConfig, error)
Click to show internal directories.
Click to hide internal directories.