Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateCache = NewBaseTemplateCache()
Functions ¶
func CleanupBaseTest ¶
Generic test to cleanup the working directory and logger.
func CreateTemplate ¶
Creates the next.js typescript template
func CreateTestDirAndLogger ¶
Creates test directory and logger. Returns the logger, test working directory path, or error
Types ¶
type BaseTemplateCache ¶
type BaseTemplateCache struct { TemplatePaths map[string]string // contains filtered or unexported fields }
func NewBaseTemplateCache ¶
func NewBaseTemplateCache() *BaseTemplateCache
func (*BaseTemplateCache) AddTemplate ¶
func (c *BaseTemplateCache) AddTemplate(templateName, templatePath string)
Adds template to the cache. Will update any template reservations in InProgressTemplates if applicable.
func (*BaseTemplateCache) GetTemplateAndCopy ¶
func (c *BaseTemplateCache) GetTemplateAndCopy(selectedTemplate, outputDir string) error
Click to show internal directories.
Click to hide internal directories.