Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTemplate ¶
func GenerateTemplate(options *BaseTemplate) error
func ValidTemplateName ¶
Types ¶
type BaseTemplate ¶
type BaseTemplate struct {
Name string `json:"name" description:"The name of the template"`
ShortName string `json:"shortname" description:"The short name of the template"`
Author string `json:"author" description:"The author of the template"`
Description string `json:"description" description:"The template description"`
HelpURL string `json:"helpurl" description:"The help url for the template"`
Version string `json:"version" description:"The version of the template" default:"v0.0.1"`
Dir string `json:"-" description:"The directory to generate the template" default:"."`
Frontend string `json:"-" description:"The frontend directory to migrate"`
}
type Template ¶
type Template struct {
BaseTemplate
Schema uint8 `json:"schema"`
// Other data
FS fs.FS `json:"-"`
// contains filtered or unexported fields
}
Template holds data relating to a template including the metadata stored in template.yaml
type TemplateData ¶
func GetDefaultTemplates ¶
func GetDefaultTemplates() []TemplateData
Click to show internal directories.
Click to hide internal directories.