Documentation ¶
Index ¶
- func Add(gitURL, templateName, templateDir, commitIsh string) error
- func AddService(appDir, templateDir string, outputWriter io.Writer) error
- func CreateApplicationTemplateDir() (string, error)
- func CreateEmptyApp(dirPath string) error
- func CreateServiceTemplateDir(serviceRole string) (string, error)
- func CreateTmpServiceDir(appDir, chosenTemplate string) (string, error)
- func Fetch(templateDir string) error
- func GetTemplates(appDir string) (result []string, err error)
- func HasTemplatesDir(appDir string) (bool, error)
- func IsValidTemplateDir(templateDir string) (bool, string, error)
- func Remove(templateName, templateDir string) error
- func Run(templateDir, resultDir string) error
- func RunTests(appDir string, outputWriter io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add fetches a remote template from GitHub and stores it under templateDir, returns an error if any
func AddService ¶
AddService (used by exo template test) runs exo-add to add template at templateDir to the app at appDir and returns an error if any
func CreateApplicationTemplateDir ¶
CreateApplicationTemplateDir creates a temporary boilr template directory for the application
func CreateEmptyApp ¶
CreateEmptyApp (used by exo template test) runs exo-create to create an empty app with the default name "my-app" at dirPath and returns an error if any
func CreateServiceTemplateDir ¶
CreateServiceTemplateDir creates a temporary boilr template directory for the service
func CreateTmpServiceDir ¶
CreateTmpServiceDir makes bolir scaffold the template chosenTemplate and store the scaffoled service folder in a tmp folder, and finally returns the path to the tmp folder
func GetTemplates ¶
GetTemplates returns a slice of all template names found in the ".exosphere" folder of the application
func HasTemplatesDir ¶
HasTemplatesDir returns whether or not there is an ".exosphere" folder
func IsValidTemplateDir ¶
IsValidTemplateDir returns whether or not the template at templateDir is a valid exosphere template, a reason if invalid, and an
Types ¶
This section is empty.