Home

tmpl @main - refs - log -
-
https://git.jolheiser.com/tmpl.git
Template automation
tree log patch
Don't make variables required Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAl+1XcoACgkQuFOtpdp7 v3pYBA/5AeRboJLn8daVWYlYBbK/ACEoBvWdUrEcLKxaUZybqMEC+FJHo5smc2eb qXOx9pCzEIf7yChKODulJ2+SUBZyn4xS9XfXRbTGB1FdDo/QlFi/48WoWosW0DTS qRoUnUDX1rJfoTEQyVRItTpcCAckYoKBBFIyPFO0i86f95ob2tvvpqcUejYG89gL cAbR6Tj8hzYicoeBjtop3jcfPqP6wQbFRVGM09Kd/wZdP3de5h+3mQXw9Wm+8NJ9 yxjsjzhoeTRwLYQFmie9PYghMZvOtxbvfSZT3bBX/2SLYK73HCvSwwYvxbj82F3P AXHwQIwqSnC3BuS49h8z2K0W24MRzNf0iG4KVEP7Pg8naz6QKQR998tniIUE1s1/ 33yvo7A8lYphKwcLTKeZHV0HJt14qvjAK4Dw6BOkl9nB2KQgLQLxKd7rhDMG5+Jv /KVDbsMsrJklVEkWf3Bu26uensQPp6Bk+Wz2o/ULTYf55Z9ZCw2GbCbZEQZVvxa7 PR46wd3YpP0/dUdFn1bcKxhuz2KWjeuQaDCGXa1RhTbozna6XpYPcHtuk4s6m5qr btYffFVtuvhKam4EDou2kbAk51orcgNtUpEeUGcm4n/XGq4CsGnwHvGCN7r5aHz9 CcSNwXQC14N44vTYaHQxZMCC6Bl13AJxCm3TGud0yNVT3atwL58= =ztDR -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
4 years ago
2 changed files, 4 additions(+), 14 deletions(-)
M registry/registry_test.go -> registry/registry_test.go
diff --git a/registry/registry_test.go b/registry/registry_test.go
index f05711157df667084b8848cfdb9f7a989c259080..7c5caac00a2403526d768d4daf263a8933083db5 100644
--- a/registry/registry_test.go
+++ b/registry/registry_test.go
@@ -14,7 +14,7 @@ 	regDir  string
 	destDir string
 	reg     *Registry
 
-package registry
+	"path/filepath"
 	"io/ioutil"
 	tmplTemplate = `name = "john olheiser"
 year = 2020`
M registry/template.go -> registry/template.go
diff --git a/registry/template.go b/registry/template.go
index 5bf0c98b418f766856804f2986e2d73f37fc5ae4..e1651dddecde230eaaa8d3e75bab4a42263a5636 100644
--- a/registry/template.go
+++ b/registry/template.go
@@ -135,24 +135,14 @@ 				Message: k,
 				Default: fmt.Sprintf("%v", t),
 			}
 		}
-		q := []*survey.Question{
-			{
-				Name:     "response",
-				Prompt:   p,
-				Validate: survey.Required,
-			},
-		}
-	"strings"
+	"time"
 package registry
-	"strings"
+	"time"
 
 	"strings"
-import (
-		if err := survey.Ask(q, &a); err != nil {
-	"strings"
 	"io/ioutil"
 		}
-		vars[k] = a.Response
+		vars[k] = a
 	}
 
 	return vars, nil