Versions in this module Expand all Collapse all v0 v0.1.0 Jun 1, 2022 Changes in this version + func BaseTemplate() *template.Template + func CloneRepo(ctx context.Context, repo string) (path string, err error) + func CompileExcludes(t *template.Template, excludes []Exclude, data *Data) ([]string, error) + func GetInput(key string, data map[string]any) (input any, err error) + func IsEmptyDir(name string) (bool, error) + func IsUpstreamRepo(path string) bool + func LookupValue(key string, data map[string]any) (value any, exists bool) + func MakeFsWalker(t *template.Template, data *Data, outPath string, ...) fs.WalkDirFunc + func MergeMaps(maps ...map[string]any) map[string]any + func NewFileMatcher(paths []string) (*fileMatcher, error) + func PathExists(path string) (bool, error) + func ReadFile(path string, dist any) error + func ReadURL(url string, dist any) error + func ReadValues(urlOrPath string, dist any) error + func RenderString(t *template.Template, s string, data *Data) (string, error) + func RunHook(ctx context.Context, t *template.Template, chdir string, hook Hook, data *Data) error + type BlueprintMeta struct + Exclude []Exclude + Input []string + PostHooks []Hook + PreHooks []Hook + Raw []string + type Data struct + Project Project + Values map[string]any + type Exclude struct + Condition string + Pattern string + type Hook struct + Name string + Script string + type Matcher interface + Match func(string, os.FileInfo) bool + type Project struct + Name string