Documentation
¶
Index ¶
- Variables
- func CreateProjectType(projecttype string) error
- type ProjectTypeConfig
- func (ptc ProjectTypeConfig) Describe()
- func (ptc ProjectTypeConfig) Exists(targetpath string) bool
- func (ptc *ProjectTypeConfig) Init(projtypeconfigdir, projecttype string) error
- func (ptc ProjectTypeConfig) UpdateConfigFile(target string) error
- func (ptc ProjectTypeConfig) Write(boxname, target string) error
- type ProjectTypeFile
Constants ¶
This section is empty.
Variables ¶
View Source
var Content embed.FS
Content missing godoc.
Functions ¶
func CreateProjectType ¶
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) 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
Click to show internal directories.
Click to hide internal directories.