paths

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 2 Imported by: 0

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.

func StateDir

func StateDir() string

StateDir returns the Grove state directory. Used for runtime state, DBs, logs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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