templates

package
v3.0.0-alpha.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(options *flags.Init) error

func ValidTemplateName

func ValidTemplateName(name string) bool

Types

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"`
	Version     int8   `json:"version"`

	// Other data
	FS fs.FS `json:"-"`
}

Template holds data relating to a template including the metadata stored in template.yaml

type TemplateData

type TemplateData struct {
	Name        string
	Description string
	FS          fs.FS
}

func GetDefaultTemplates

func GetDefaultTemplates() []TemplateData

type TemplateOptions

type TemplateOptions struct {
	*flags.Init
	LocalModulePath string
	UseTypescript   bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL