Documentation
¶
Index ¶
- Constants
- func DotfilesDir() string
- func GetDotreplacedPath(path string) string
- func LogFilePath(dotfilesDir string) string
- func ModuleDir(dotfilesDir, moduleName string) string
- func PeridotDir(dotfilesDir string) string
- func RenderedFilePath(path string, dotfilesDir string) (string, error)
- func ResolvePath(path string, base string) (string, error)
- func SplitPath(path string) []string
- func StateFilePath(dotfilesDir string) string
- func SymlinkPath(path, dotfilesDir, moduleName, root string) (string, error)
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 LogFilePath ¶
func PeridotDir ¶
func StateFilePath ¶
func SymlinkPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.