Prompt for template variables values based on the available manifest

This commit is contained in:
2020-02-21 14:29:26 +01:00
parent f5d5afa82d
commit d9e446553c
7 changed files with 217 additions and 73 deletions

View File

@ -9,7 +9,7 @@ import (
"strings"
"text/template"
"gitlab.com/wpetit/scaffold/internal/fs"
"forge.cadoles.com/wpetit/scaffold/internal/fs"
"gopkg.in/src-d/go-billy.v4"
"github.com/Masterminds/sprig"
@ -60,8 +60,6 @@ func CopyDir(vfs billy.Filesystem, baseDir string, dst string, opts *Option) err
dstPath := filepath.Join(dst, relSrcPath)
log.Printf("relSrcPath: %s, dstPath: %s", relSrcPath, dstPath)
if info.IsDir() {
log.Printf("creating dir '%s'", dstPath)
if err := os.MkdirAll(dstPath, 0755); err != nil {