ui

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearScreen

func ClearScreen()

func CreateSecret

func CreateSecret() error

func CreteProject

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

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