builder

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDirectory added in v0.1.4

func CopyDirectory(src, dst string) error

func CurateSource added in v0.1.4

func CurateSource(path string) (string, error)

func GitClone added in v0.1.4

func GitClone(src, dst string) error

func Init

func Init(template *Template) error

Init fetches the default template repo and installs it to a users computer

func IsDirectory added in v0.1.4

func IsDirectory(path string) bool

Types

type Builder

type Builder struct {
	Box packr.Box
	// contains filtered or unexported fields
}

Builder is the struct that holds the box on it with all template files.

type Template

type Template struct {
	Org  string
	Proj string
	Name string
	URL  string
}

Template is the default struct for defining template variables

Jump to

Keyboard shortcuts

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