MCPcopy Index your code
hub / github.com/jetify-com/devbox / InitFromName

Function InitFromName

internal/templates/template.go:23–29  ·  view source on GitHub ↗
(w io.Writer, template, target string)

Source from the content-addressed store, hash-verified

21)
22
23func InitFromName(w io.Writer, template, target string) error {
24 templatePath, ok := templates[template]
25 if !ok {
26 return usererr.New("unknown template name or format %q", template)
27 }
28 return InitFromRepo(w, "https://github.com/jetify-com/devbox", templatePath, target)
29}
30
31func InitFromRepo(w io.Writer, repo, subdir, target string) error {
32 if err := createDirAndEnsureEmpty(target); err != nil {

Callers 1

runCreateCmdFunction · 0.92

Calls 2

NewFunction · 0.92
InitFromRepoFunction · 0.85

Tested by

no test coverage detected