MCPcopy Create free account
hub / github.com/catppuccin/cli / GetTemplateDir

Function GetTemplateDir

internal/utils/utils.go:133–141  ·  view source on GitHub ↗

GetTemplateDir gets the location of the template directory.

(repo string)

Source from the content-addressed store, hash-verified

131
132// GetTemplateDir gets the location of the template directory.
133func GetTemplateDir(repo string) string {
134 // Get current directory
135 cwd, err := os.Getwd()
136 if err != nil {
137 log.Fatalf("Failed to get current directory.")
138 }
139 installPath := path.Join(cwd, repo)
140 return installPath
141}
142
143// RunHooks runs a list of hooks.
144func RunHooks(hooks []structs.Hook) {

Callers 2

StartCloneFunction · 0.92
InitTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected