Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate( templatePath, templateName, outputFilepath string, context TemplateContext, leftDelim, rightDelim string, ) error
func LoadShuttleYaml ¶
func ResolveTemplatePath ¶
func ResolveTemplatePath(project ShuttleContext, templateName string) (string, error)
Types ¶
type ShuttleContext ¶
type ShuttleContext struct { Variables config.DynamicYaml `yaml:"vars"` // temporarily include a dynamic representation of the variables here so the go-based plans can use this for templating so we're backwards compatible with the existing templates (for the time being) ProjectPath string `yaml:"-"` LocalPlanPath string `yaml:"-"` LocalShuttleDirectoryPath string `yaml:"-"` TempDirectoryPath string `yaml:"-"` }
func LoadShuttleContext ¶
func LoadShuttleContext(projectPath, localPlanPath string) (ShuttleContext, error)
Click to show internal directories.
Click to hide internal directories.