scaffold

package
v0.0.0-...-5692a8a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(p Project) error

func CreateRepo

func CreateRepo(cr bool) option

func DisableModules

func DisableModules(dm bool) option

func GoModuleName

func GoModuleName(mod string) option

func Name

func Name(n string) option

func ProjectDir

func ProjectDir(dir string) option

Types

type Project

type Project struct {
	Name           string
	Repo           repository.SCMRepository
	CreateRepo     bool   `mapstructure:"create-repo"`
	ProjectDir     string `mapstructure:"project-dir"`
	DisableModules bool   `mapstructure:"disable-modules"`
	GoModuleName   string `mapstructure:"module-name"`
}

func (*Project) Configure

func (p *Project) Configure(opts ...option)

Jump to

Keyboard shortcuts

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