Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSymlinks ¶
CreateSymlinks will read all of the files at sourceDir and link them to the appropriate location in targetDir, if there is a folder named config in sourceDir CreateSymlinks will run itself using that folder as sourceDir and targetDir as XDG_config.CONFIG_HOME or HOME/.config if XDG_config.CONFIG_HOME is not set.
Types ¶
type Config ¶
Config changes the behavior of linking functions, it acts as a store for common functoin arguments
type LinkInfo ¶
LinkInfo holds the src and destination for our symlink.
func GenerateSymlink ¶
GenerateSymlink will create a LinkInfo with the appropriate destination, handling the XDG_config.CONFIG_HOME special case.
func GenerateSymlinks ¶
GenerateSymlinks will create the symlinks so we know what they were supposed to be prior to removing the profile.