ui

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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