paths

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DotfilesDirEnvName   = "PERIDOT_DOTFILES_DIR"
	PeridotDirName       = ".peridot"
	StateFileName        = "state.json"
	ModuleConfigFileName = "module.toml"
	LogFileName          = "peridot.log"
	DotreplacePrefix     = "dot-"
)

Variables

This section is empty.

Functions

func DotfilesDir

func DotfilesDir() string

DotfilesDir returns the directory specified by the PERIDOT_DOTFILES_DIR environment variable. If not set, it searches upward for a .peridot directory containing state.json, starting from the current directory. Falls back to the current working directory if none is found.

func GetDotreplacedPath

func GetDotreplacedPath(path string) string

func LogFilePath

func LogFilePath(dotfilesDir string) string

func ModuleDir

func ModuleDir(dotfilesDir, moduleName string) string

func PeridotDir

func PeridotDir(dotfilesDir string) string

func RenderedFilePath

func RenderedFilePath(path string, dotfilesDir string) (string, error)

func ResolvePath

func ResolvePath(path string, base string) (string, error)

func SplitPath

func SplitPath(path string) []string

func StateFilePath

func StateFilePath(dotfilesDir string) string

func SymlinkPath

func SymlinkPath(path, dotfilesDir, moduleName, root string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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