package
0.0.0-20231109174816-efdfd57cdc11
Repository: https://github.com/catppuccin/cli.git
Documentation: pkg.go.dev
# Functions
BoolAnd uses booleans in an AND operator.
CheckBetter checks if better is greater than check.
CloneRepo clones a repo into the specified location.
CloneTemplate creates the template directory and clones the template repo into it.
GetEnv gets an environment variable.
GetTemplateDir gets the location of the template directory.
HandleDir handles a directory, replacing certain parts with known attributes.
HandleDirPath is a function to handle a directory when making a symlink.
HandleFilePath handles files that are made with symlinks.
InitTemplate initializes a template repo for the repo name specified.
InstallFlavours is a wrapper for InstallLinks which takes the flavour and handles the install accordingly.
InstallLinks is a wrapper over MakeLinks that parses the mode and uses it to create the correct link, as specified by the ctprc.
IsWindows checks if OS is Windows.
ListContains checks if a list of strings contains a string.
MakeLinks loops through a list and converts its attributes into arguments for MakeLink.
MakeLocation saves the locations written to during installation into a file for later access.
OSReadDir expands a directory path into a list of files within that directory.
PathExists checks if a path exists.
PullUpdates opens a git repo and pulls the latest changes.
RunHooks runs a list of hooks.
SearchRepos searches through a SearchRes for the best match.
ShareDir generates the share directory for the cli.
UpdateJSON makes a search request for all Catppuccin repos and caches them.
UserHomeDir gets the user's home directory.