Versions in this module Expand all Collapse all v0 v0.0.1 Oct 21, 2022 Changes in this version + var TemplateIgnore = ".templateignore" + var TemplateParseIgnore = ".templateparseignore" + func CommitAndPushGithubRepo(directory, branch, path, accessToken string, auth *http.BasicAuth) error + func CopyDir(srcPath string, destPath string) error + func CreateGithubRepo(organization, name, description, token string, private bool) (*github.Repository, error) + func FileCopy(src, dst string) (int64, error) + func FileCreate(content bytes.Buffer, name string, mode os.FileMode) error + func Generate(c *TemplateConfig) (err error) + func GetAppPath() string + func GetGithubRepoAllBranches(ctx context.Context, organization, name, token string) ([]*github.Branch, error) + func GetInstallPath() string + func GetLatestVersion() string + func GetParseFromTemplate(dir, subPath string) (map[string]string, error) + func GetSubPath(directory string) ([]string, error) + func GetTmpPath() string + func GitClone(url, branch, directory string, noCheckout bool, accessToken string) (*git.Repository, error) + func GitCloneSSH(url, directory, reference, privateKeyFile, password string) error + func GitRemote(url, directory string) error + func IsWindows() bool + func PathCreate(dir string) error + func PathExist(addr string) bool + type Generator struct + Cfg interface{} + DestinationPath string + SubPath string + TemplateIgnoreDirs []string + TemplateIgnoreFiles []string + TemplateParseIgnoreDirs []string + TemplateParseIgnoreFiles []string + TemplatePath string + func (e *Generator) Traverse() error + func (e *Generator) TraverseFunc(path string, f os.DirEntry, err error) error + type GithubConfig struct + Description string + Name string + Organization string + Secrets map[string]string + Token string + type TemplateConfig struct + CreateRepo bool + Destination string + Github *GithubConfig + Ignore []string + Params interface{} + Service string + TemplateLocal string + TemplateLocalSubPath string + TemplateUrl string + func (e *TemplateConfig) OnChange()