Documentation
¶
Overview ¶
Package paths provides XDG-compliant path resolution for Grove.
Resolution order: 1. GROVE_HOME (portable root) → $GROVE_HOME/{config,data,state,cache} 2. XDG env vars → $XDG_*_HOME/grove 3. Platform defaults → ~/.config/grove, ~/.local/share/grove, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinDir ¶
func BinDir() string
BinDir returns the Grove binary directory. Resolution order: 1. GROVE_BIN env var (explicit override for demos/testing) 2. DataDir()/bin (standard location)
func CacheDir ¶
func CacheDir() string
CacheDir returns the Grove cache directory. Used for temporary/regenerable data.
func ConfigDir ¶
func ConfigDir() string
ConfigDir returns the Grove configuration directory. Used for config files like grove.yml.
func DataDir ¶
func DataDir() string
DataDir returns the Grove data directory. Used for binaries, versions, plugins, notebooks.
func EnsureDirs ¶
func EnsureDirs() error
EnsureDirs creates all Grove directories if they don't exist.
Types ¶
This section is empty.