ui

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 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

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

func CreateSecret

func CreateSecret() error

func GetProjectTemplates

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

GetProjectTemplates returns list of templates in dir.

func GetTemplateGenerators

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

Types

type Generator

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

func NewGeneratorLocal

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

func NewGeneratorRemote

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

func (g *Generator) SetInteractive()

func (*Generator) WriteFiles

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

type TmplFS

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

func NewTmplFS

func NewTmplFS(path string) TmplFS

type TmplFSLocal

type TmplFSLocal struct {
	Dir string
}

func (*TmplFSLocal) ReadDir

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

func (*TmplFSLocal) ReadFile

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