Documentation
¶
Index ¶
Constants ¶
View Source
const ( // InstallModeSymlink records a target installed as a symlink. InstallModeSymlink = "symlink" // InstallModeCopy records a target installed as a copied file or directory. InstallModeCopy = "copy" )
View Source
const (
// EnvHome is the environment variable used to override the ContextCart home.
EnvHome = "CONTEXTCART_HOME"
)
Variables ¶
This section is empty.
Functions ¶
func LinkOrCopy ¶
LinkOrCopy places src at dst by symlink when requested and possible, otherwise by copying. It never overwrites an existing target.
func RelForDisplay ¶
RelForDisplay returns target relative to base when possible, using slash separators for stable CLI output.
func ResolveHome ¶
ResolveHome returns the ContextCart home directory.
Precedence is explicit override, CONTEXTCART_HOME, then the OS user home plus ".contextcart". The returned path is absolute and cleaned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.