Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProjectDir ¶
GetProjectDir returns the project's root dir. It finds it by looking for the jen.yaml file in current working dir and then walking up the directory structure until it reaches the volume's root dir. If it doesn't find it, it returns an empty string.
Types ¶
type Project ¶
type Project struct { Version string `yaml:"version"` TemplateName string `yaml:"template"` Vars map[string]interface{} `yaml:"vars"` Dir string `yaml:"-"` OverridenVars []string `yaml:"-"` }
Project represents the configuration file in a project's root dir
func LoadOrCreate ¶
LoadOrCreate loads current project file and, if it doesn't exists, prompts user whether to create it.
func (Project) GetTemplateDir ¶
GetTemplateDir returns the path to this project's template
Click to show internal directories.
Click to hide internal directories.