MCPcopy Create free account

hub / github.com/catppuccin/cli / functions

Functions84 in github.com/catppuccin/cli

↓ 12 callersMethodError
Error implements error
schema/schema.go:47
↓ 8 callersFunctionHandleDir
HandleDir handles a directory, replacing certain parts with known attributes.
internal/utils/systems.go:24
↓ 7 callersFunctionShareDir
ShareDir generates the share directory for the cli.
internal/utils/systems.go:46
↓ 6 callersFunctionGetEnv
GetEnv gets an environment variable. If not defined, it gets the fallback.
internal/utils/utils.go:26
↓ 5 callersFunctionInstallLinks
InstallLinks is a wrapper over MakeLinks that parses the mode and uses it to create the correct link, as specified by the ctprc.
internal/utils/symlinks.go:131
↓ 5 callersFunctionPathExists
PathExists checks if a path exists
internal/utils/utils.go:39
↓ 4 callersFunctionRunHooks
RunHooks runs a list of hooks.
internal/utils/utils.go:144
↓ 3 callersFunctionLint
Lint is for linting against the schema
schema/schema.go:19
↓ 3 callersFunctionmapValue
(v any)
schema/convert.go:37
↓ 2 callersFunctionBoolAnd
BoolAnd uses booleans in an AND operator
internal/utils/utils.go:86
↓ 2 callersFunctionCheckBetter
CheckBetter checks if better is greater than check. If it is, it returns better, otherwise it returns check. It also returns a BoolAnd of checkbetter
internal/utils/utils.go:78
↓ 2 callersFunctionCloneRepo
CloneRepo clones a repo into the specified location.
internal/utils/systems.go:72
↓ 2 callersFunctionGetTemplateDir
GetTemplateDir gets the location of the template directory.
internal/utils/utils.go:133
↓ 2 callersFunctionInitTemplate
InitTemplate initializes a template repo for the repo name specified.
internal/utils/systems.go:85
↓ 2 callersFunctionMakeLinks
MakeLinks loops through a list and converts its attributes into arguments for MakeLink.
internal/utils/symlinks.go:68
↓ 2 callersMethodMarshal
()
internal/pkg/structs/program.go:19
↓ 2 callersFunctionRemoveInstalled
(packages []string)
internal/cli/uninstall.go:39
↓ 2 callersFunctioninstaller
(packages []string)
internal/cli/install.go:43
↓ 1 callersFunctionCloneRepo
CloneRepo clones a repo into the specified location.
internal/ui/progress.go:32
↓ 1 callersFunctionCloneTemplate
CloneTemplate creates the template directory and clones the template repo into it.
internal/utils/utils.go:116
↓ 1 callersFunctionExecute
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the r
internal/cli/root.go:25
↓ 1 callersFunctionHandleDirPath
HandleDirPath is a function to handle a directory when making a symlink
internal/utils/symlinks.go:104
↓ 1 callersFunctionHandleFilePath
HandleFilePath handles files that are made with symlinks
internal/utils/symlinks.go:118
↓ 1 callersMethodInit
()
internal/ui/installInput.go:55
↓ 1 callersMethodInit
()
internal/ui/execInput.go:31
↓ 1 callersMethodInit
()
internal/ui/repoInput.go:51
↓ 1 callersFunctionInstallFlavours
InstallFlavours is a wrapper for InstallLinks which takes the flavour and handles the install accordingly
internal/utils/symlinks.go:148
↓ 1 callersFunctionIsWindows
IsWindows checks if OS is Windows
internal/utils/utils.go:34
↓ 1 callersFunctionListContains
DieIfError kills the program if err is not nil. func DieIfError(err error, message string) { if err != nil { // log.Fatalf("%s.\nFailed with error:
internal/utils/utils.go:68
↓ 1 callersFunctionMakeLocation
MakeLocation saves the locations written to during installation into a file for later access.
internal/utils/systems.go:115
↓ 1 callersMethodMarshalLocation
()
internal/pkg/structs/saved_flavours.go:11
↓ 1 callersFunctionNewExecModel
(p string)
internal/ui/execInput.go:18
↓ 1 callersFunctionNewInitialModel
()
internal/ui/repoInput.go:38
↓ 1 callersFunctionNewInstallModel
(p string)
internal/ui/installInput.go:29
↓ 1 callersFunctionNewSpinnerParent
()
internal/ui/spinner.go:22
↓ 1 callersFunctionOSReadDir
OSReadDir expands a directory path into a list of files within that directory. Not recursive.
internal/utils/systems.go:54
↓ 1 callersFunctionPullUpdates
PullUpdates opens a git repo and pulls the latest changes.
internal/utils/network.go:24
↓ 1 callersMethodRenderView
()
internal/ui/installInput.go:125
↓ 1 callersFunctionRun
()
internal/ui/ui.go:10
↓ 1 callersMethodRun
()
internal/pkg/structs/program.go:80
↓ 1 callersFunctionSearchRepos
SearchRepos searches through a SearchRes for the best match
internal/utils/utils.go:94
↓ 1 callersFunctionStartClone
(repo string)
internal/ui/progress.go:49
↓ 1 callersFunctionUnmarshal
Unmarshal YAML to map[string]any instead of map[any]any.
schema/convert.go:10
↓ 1 callersFunctionUnmarshalProgram
(data []byte)
internal/pkg/structs/program.go:13
↓ 1 callersFunctionUnmarshalSearch
(data []byte)
internal/pkg/structs/search.go:7
↓ 1 callersMethodUpdate
(msg tea.Msg)
internal/ui/installInput.go:59
↓ 1 callersFunctionUpdateJSON
UpdateJSON makes a search request for all Catppuccin repos and caches them.
internal/utils/network.go:50
↓ 1 callersFunctionUserHomeDir
UserHomeDir gets the user's home directory
internal/utils/utils.go:48
↓ 1 callersMethodView
()
internal/ui/installInput.go:144
↓ 1 callersMethodWrite
Write intercepts the content and updates the percentage
internal/ui/progress.go:61
↓ 1 callersFunctionfinalPause
()
internal/ui/progress.go:77
↓ 1 callersFunctionhandleArgs
(args []string)
internal/cli/new.go:22
↓ 1 callersFunctionlint
(r io.Reader, loader gojsonschema.JSONLoader)
schema/schema.go:23
↓ 1 callersFunctionlinter
(filePath string)
internal/cli/lint.go:42
↓ 1 callersFunctionmakeLink
MakeLink makes a symlink from a path to another path with a suffix.
internal/utils/symlinks.go:21
↓ 1 callersFunctionmapMap
(in map[any]any)
schema/convert.go:29
↓ 1 callersFunctionmapSlice
(in []any)
schema/convert.go:21
↓ 1 callersFunctionsearchPackage
(searchQuery []string)
internal/cli/search.go:27
↓ 1 callersMethodupdateInputs
(msg tea.Msg)
internal/ui/installInput.go:116
↓ 1 callersFunctionupdater
(packages []string)
internal/cli/update.go:29
FunctionGetRepoName
()
internal/ui/spinner.go:16
MethodInit
()
internal/ui/progress.go:87
MethodInit
()
internal/ui/spinner.go:29
FunctionNewProgressBar
()
internal/ui/progress.go:25
FunctionTestHandleDir
(t *testing.T)
internal/utils/utils_test.go:10
FunctionTestInvalidSchema
(t *testing.T)
schema/schema_test.go:22
FunctionTestValidSchema
(t *testing.T)
schema/schema_test.go:12
FunctionUnmarshalLocation
(data []byte)
internal/pkg/structs/saved_flavours.go:5
MethodUpdate
(msg tea.Msg)
internal/ui/progress.go:91
MethodUpdate
(msg tea.Msg)
internal/ui/execInput.go:35
MethodUpdate
(msg tea.Msg)
internal/ui/repoInput.go:55
MethodUpdate
(msg tea.Msg)
internal/ui/spinner.go:33
MethodView
()
internal/ui/progress.go:115
MethodView
()
internal/ui/execInput.go:62
MethodView
()
internal/ui/repoInput.go:83
MethodView
()
internal/ui/spinner.go:52
Functioninit
()
internal/cli/uninstall.go:21
Functioninit
()
internal/cli/lint.go:12
Functioninit
()
internal/cli/new.go:9
Functioninit
Create the command
internal/cli/update.go:12
Functioninit
()
internal/cli/search.go:14
Functioninit
()
internal/cli/install.go:23
Functioninit
()
cmd/ctp/main.go:9
Functionmain
()
cmd/ctp/main.go:19