From 0cd4c2fee69b4b3cd73797bcb20980affe6aa14f Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Sun, 29 Jan 2017 15:27:08 -0500 Subject: [PATCH] main: still iterating Signed-off-by: Vincent Batts --- cmd/sl-feeds/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/sl-feeds/main.go b/cmd/sl-feeds/main.go index c7b8208..10d52f4 100644 --- a/cmd/sl-feeds/main.go +++ b/cmd/sl-feeds/main.go @@ -31,6 +31,7 @@ func main() { }, } + // This is the main/default application app.Action = func(c *cli.Context) error { if c.Bool("sample-config") { c := Config{ @@ -40,8 +41,7 @@ func main() { return nil } - fmt.Println("boom! I say!") - fmt.Println(config) + fmt.Println(config.Dest) return nil } @@ -57,6 +57,9 @@ func main() { if _, err := toml.Decode(string(data), &config); err != nil { return err } + if c.String("dest") != "" { + config.Dest = c.String("dest") + } return nil }