ui

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearScreen

func ClearScreen()

func CreateProject added in v0.5.2

func CreateProject(dir, gitURL string, args ...string) error

func CreateSecret

func CreateSecret() error

func GetProjectTemplates added in v0.4.4

func GetProjectTemplates(gitURL string) (res []string, err error)

GetProjectTemplates returns list of templates in dir.

func GetTemplateGenerators added in v0.4.6

func GetTemplateGenerators(tmplSrc string) (tmplDir string, err error)

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGeneratorLocal added in v0.4.6

func NewGeneratorLocal(categoryName string) (g *Generator, err error)

func NewGeneratorRemote added in v0.4.6

func NewGeneratorRemote(gitSrc string) (g *Generator, err error)

func (*Generator) RenderedFiles

func (g *Generator) RenderedFiles() map[string][]byte

func (*Generator) RunMainMenu

func (g *Generator) RunMainMenu(subCategory ...string) (escaped bool, err error)

func (*Generator) RunTemplate

func (g *Generator) RunTemplate() (err error)

func (*Generator) SelectedTemplate

func (g *Generator) SelectedTemplate() string

func (*Generator) SetInteractive added in v0.4.1

func (g *Generator) SetInteractive()

func (*Generator) WriteFiles

func (g *Generator) WriteFiles(path string) (err error)

type TmplFS added in v0.4.6

type TmplFS interface {
	ReadDir(name string) ([]fs.DirEntry, error)
	ReadFile(name string) ([]byte, error)
}

func NewTmplFS added in v0.4.6

func NewTmplFS(path string) TmplFS

type TmplFSLocal added in v0.4.6

type TmplFSLocal struct {
	Dir string
}

func (*TmplFSLocal) ReadDir added in v0.4.6

func (t *TmplFSLocal) ReadDir(path string) ([]fs.DirEntry, error)

func (*TmplFSLocal) ReadFile added in v0.4.6

func (t *TmplFSLocal) ReadFile(path string) ([]byte, error)

Jump to

Keyboard shortcuts

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