scaffold

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const VersionShTmpl = `` /* 770-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomRenderer

type CustomRenderer interface {
	SetFs(afero.Fs)
	CustomRender() ([]byte, error)
}

type Scaffold

type Scaffold struct {
	CliName string

	CliVersion string

	// Repo is the project repo name
	Repo string

	AbsProjectPath string

	ProjectName string

	// Fs is the filesystem that GetWriter uses to write scaffold files
	Fs afero.Fs

	// GetWriter returns a writer for writing scaffold files.
	GetWriter func(path string, mode os.FileMode) (io.Writer, error)
}

Scaffold writes Templates to scaffold new files

func (*Scaffold) Execute

func (s *Scaffold) Execute(cfg *input.Config, files ...input.File) error

Execute renders the input scaffolding

type VersionSh

type VersionSh struct {
	input.Input
}

func (*VersionSh) GetInput

func (v *VersionSh) GetInput() (input.Input, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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