From bd678c9c428d25236e116d3abcca8dde36fe27f0 Mon Sep 17 00:00:00 2001 From: asoseil Date: Mon, 16 Oct 2017 15:22:10 +0200 Subject: [PATCH] default value for init commands --- realize.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/realize.go b/realize.go index b131347..6a9cc8b 100644 --- a/realize.go +++ b/realize.go @@ -24,9 +24,9 @@ type logWriter struct{} // Realize struct contains the general app informations type realize struct { - Settings Settings `yaml:"settings"` - Server Server `yaml:"server"` - Schema []Project `yaml:"schema"` + Settings Settings `yaml:"settings" json:"settings"` + Server Server `yaml:"server" json:"server"` + Schema []Project `yaml:"schema" json:"schema"` sync chan string } @@ -384,7 +384,7 @@ func main() { { Before: func(d interact.Context) error { - d.SetDef(true, green.regular("(y)")) + d.SetDef(false, green.regular("(n)")) return nil }, Quest: interact.Quest{ @@ -424,7 +424,7 @@ func main() { }, { Before: func(d interact.Context) error { - d.SetDef(true, green.regular("(y)")) + d.SetDef(false, green.regular("(n)")) return nil }, Quest: interact.Quest{ @@ -468,7 +468,7 @@ func main() { }, { Before: func(d interact.Context) error { - d.SetDef(true, green.regular("(y)")) + d.SetDef(false, green.regular("(n)")) return nil }, Quest: interact.Quest{