starters

package
v0.1.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProject

func CreateProject(projectName, templateName string) error

CreateProject creates a new project from a template

func GetTemplateItems

func GetTemplateItems() []list.Item

GetTemplateItems returns a list of template items for bubbletea

Types

type Template

type Template struct {
	Name  string            `json:"name"`
	Desc  string            `json:"description"`
	Files map[string]string `json:"files"`
	Stack []string          `json:"stack"`
}

Template represents a project starter template

type TemplateItem

type TemplateItem struct {
	Name string
	Desc string
}

TemplateItem implements list.Item for bubbletea

func (TemplateItem) Description

func (t TemplateItem) Description() string

func (TemplateItem) FilterValue

func (t TemplateItem) FilterValue() string

func (TemplateItem) Title

func (t TemplateItem) Title() string

Jump to

Keyboard shortcuts

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