scaffold

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	App          string
	Template     string
	Author       string
	ServiceUser  string
	ServiceGroup string
}

type Scaffolder

type Scaffolder struct{ FS embed.FS }

func (Scaffolder) Init

func (s Scaffolder) Init(dest string, ctx Context, force bool) error

func (Scaffolder) InstallTools

func (s Scaffolder) InstallTools(dest string, force bool) error

func (Scaffolder) Templates

func (s Scaffolder) Templates() ([]string, error)

func (Scaffolder) TemplatesWithDesc

func (s Scaffolder) TemplatesWithDesc() ([]TemplateInfo, error)

type TemplateInfo

type TemplateInfo struct {
	Name string
	Desc string
}

Jump to

Keyboard shortcuts

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