template

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	TemplateDir string `short:"d" type:"path" default:"." help:"The directory to read the templates from"`
}

func (*List) Help added in v0.4.0

func (f *List) Help() string

func (*List) Run

func (l *List) Run(ctx context.Context, logger log.FLogger) error

type Pull

type Pull struct {
	Repository string `arg:"" default:"https://github.com/funlessdev/fl-templates.git" help:"The repository to pull the template folder from"`
	OutDir     string `short:"o" type:"existingdir" default:"." help:"The output directory where the template folder will be placed"`
	Force      bool   `short:"f" default:"false" help:"Overwrite the template if it already exists"`
}

func (*Pull) Help added in v0.4.0

func (f *Pull) Help() string

func (*Pull) Run

func (p *Pull) Run(ctx context.Context, logger log.FLogger) error

type Template

type Template struct {
	Pull Pull `cmd:"" help:"Pull a template from a repository"`
	List List `cmd:"" help:"List available templates"`
}

Jump to

Keyboard shortcuts

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