Help us shape the future of Go! Take the 2026 Go Developer Survey

paths

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func BaseDir() (string, error)

BaseDir returns ~/.dot-agent/base — the local skills library (not synced via git).

func BaseSkillsDir added in v0.8.0

func BaseSkillsDir() (string, error)

func ConfigDir

func ConfigDir() (string, error)

func DefaultSourceDir

func DefaultSourceDir() (string, error)

func ExpandPath

func ExpandPath(path string) (string, error)

ExpandPath resolves ~ and environment variables in a path string.

func HomeDir

func HomeDir() (string, error)

func ManifestPath

func ManifestPath(sourceDir string) string

func SaveUserConfig

func SaveUserConfig(cfg *UserConfig) error

func UserConfigPath

func UserConfigPath() (string, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL