dirs

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseDir

func BaseDir() string

BaseDir returns the llmconfig root directory (LLMCONFIG_CONFIG_DIR or the user's home dir joined with ".llmconfig"). It is platform-independent: os.UserHomeDir resolves to %USERPROFILE% on Windows and $HOME elsewhere.

func BenchDir

func BenchDir() string

func ConfigDir

func ConfigDir() string

func EnsureAll

func EnsureAll() error

func EnsureDir

func EnsureDir(path string) error

func ExpandHome

func ExpandHome(path string) string

ExpandHome resolves leading "~" to the user's home directory. Handles bare "~", "~/<rest>", and "~\<rest>" (the last form is what Windows users typically type when editing YAML by hand).

func LogDir

func LogDir() string

func MarkerFile added in v1.2.0

func MarkerFile(name string) string

MarkerFile returns the path of an opaque "we did this once" marker under BaseDir(). Used by one-shot bookkeeping like the .yaml→.llmc migration: the file's presence is the only signal; its contents are ignored.

func ModelLockDir

func ModelLockDir() string

ModelLockDir is the directory holding per-model lock files for serialising concurrent operations (e.g. `llmconfig up X`) against the same model.

func ModelLockFile

func ModelLockFile(name string) string

ModelLockFile is the path of the lock file for a single model.

func ModelsDir

func ModelsDir() string

func StateFile

func StateFile() string

func StateLockFile

func StateLockFile() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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