projecttype

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Content embed.FS

Content missing godoc.

Functions

func CreateProjectType

func CreateProjectType(projecttype string) error

CreateProjectType missing godoc.

Types

type ProjectTypeConfig

type ProjectTypeConfig struct {
	ProjectType    string `yaml:"projecttype"`
	ProjectTypeDir string
	Workdir        string            `yaml:"workdir"`
	Pattern        string            `yaml:"pattern"`
	SetupActions   []string          `yaml:"setupactions"`
	Files          []ProjectTypeFile `yaml:"files"`
}

ProjectTypeConfig defines a structure of a project type

func NewProjectTypeConfig

func NewProjectTypeConfig(projecttype string) ProjectTypeConfig

NewProjectTypeConfig read the relevant configfile and return ProjectTypeConfig object with relevant data.

func (ProjectTypeConfig) Describe

func (ptc ProjectTypeConfig) Describe()

Describe describe

func (ProjectTypeConfig) Exists

func (ptc ProjectTypeConfig) Exists(targetpath string) bool

Exists missing godoc.

func (*ProjectTypeConfig) Init

func (ptc *ProjectTypeConfig) Init(projtypeconfigdir, projecttype string) error

Init missing godoc.

func (ProjectTypeConfig) UpdateConfigFile

func (ptc ProjectTypeConfig) UpdateConfigFile(target string) error

UpdateConfigFile missing godoc.

func (ProjectTypeConfig) Write

func (ptc ProjectTypeConfig) Write(boxname, target string) error

Write missing godoc.

type ProjectTypeFile

type ProjectTypeFile struct {
	Name        string `yaml:"name"`
	Destination string `yaml:"destination"`
	Mode        string `yaml:"mode"`
}

ProjectTypeFile defines a structure of a file

Jump to

Keyboard shortcuts

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