Documentation
¶
Index ¶
- func CloneRepo(repo string) string
- func GetEnv(lookup string, fallback string) string
- func HandleDir(dir string) string
- func HandleDirPath(finalDir string, name string)
- func HandleFilePath(finalDir string, name string)
- func IsWindows() bool
- func MakeLinks(baseDir string, links []string, to string, finalDir string)
- func PathExists(path string) bool
- func PullUpdates(repo string)
- func ShareDir() string
- func UserHomeDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleDir ¶ added in v0.2.4
HandleDir handles a directory, replacing certain parts with known attributes.
func HandleDirPath ¶ added in v0.2.4
HandleDirPath is a function to handle a directory when making a symlink
func HandleFilePath ¶ added in v0.2.4
HandleFilePath handles files that are made with symlinks
func MakeLinks ¶ added in v0.2.4
MakeLinks loops through a list and converts it's attributes into arguments for MakeLink.
func PullUpdates ¶ added in v0.2.4
func PullUpdates(repo string)
PullUpdates opens a git repo and pulls the latest changes.
func ShareDir ¶ added in v0.2.4
func ShareDir() string
ShareDir generates the share directory for the cli.
func UserHomeDir ¶ added in v0.2.4
func UserHomeDir() string
UserHomeDir gets the user's home directory
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.