github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/singletons/templates/vars.go (about) 1 package templates 2 3 import ( 4 "os" 5 "path" 6 7 functionSpec "github.com/taubyte/go-specs/function" 8 librarySpec "github.com/taubyte/go-specs/library" 9 smartOpSpec "github.com/taubyte/go-specs/smartops" 10 websiteSpec "github.com/taubyte/go-specs/website" 11 ) 12 13 var ( 14 TemplateRepoURL = "https://github.com/taubyte-test/tb_templates" 15 templateFolder = path.Join(os.TempDir(), "taubyte_templates") 16 templateRepositoryFolder = path.Join(templateFolder, "tb_templates") 17 templateWebsiteFolder = path.Join(templateRepositoryFolder, websiteSpec.PathVariable.String()) 18 templateLibraryFolder = path.Join(templateRepositoryFolder, librarySpec.PathVariable.String()) 19 templateCodeFolder = path.Join(templateRepositoryFolder, "code") 20 templateFunctionsFolder = path.Join(templateCodeFolder, functionSpec.PathVariable.String()) 21 templateSmartOpsFolder = path.Join(templateCodeFolder, smartOpSpec.PathVariable.String()) 22 )