Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OutputList ¶
OutputList prints the list of available tempaltes to the given logger
func TemplateShortNames ¶
func TemplateShortNames() (*slicer.StringSlicer, error)
TemplateShortNames returns a slicer of short template names
Types ¶
type Data ¶
type Data struct { ProjectName string BinaryName string WailsVersion string NPMProjectName string AuthorName string AuthorEmail string AuthorNameAndEmail string WailsDirectory string }
Data contains the data we wish to embed during template installation
type Options ¶
type Options struct { ProjectName string TemplateName string BinaryName string TargetDir string Logger *clilogger.CLILogger GenerateVSCode bool PathToDesktopBinary string PathToServerBinary string InitGit bool AuthorName string AuthorEmail string }
Options for installing a template
type Template ¶
type Template struct { // Template details Name string `json:"name"` ShortName string `json:"shortname"` Author string `json:"author"` Description string `json:"description"` HelpURL string `json:"helpurl"` // Other data Directory string `json:"-"` }
Template holds data relating to a template including the metadata stored in template.json
Click to show internal directories.
Click to hide internal directories.