mirror of https://github.com/vbatts/sl-feeds.git
main: still iterating
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
98d14f9b91
commit
0cd4c2fee6
|
@ -31,6 +31,7 @@ func main() {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This is the main/default application
|
||||||
app.Action = func(c *cli.Context) error {
|
app.Action = func(c *cli.Context) error {
|
||||||
if c.Bool("sample-config") {
|
if c.Bool("sample-config") {
|
||||||
c := Config{
|
c := Config{
|
||||||
|
@ -40,8 +41,7 @@ func main() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("boom! I say!")
|
fmt.Println(config.Dest)
|
||||||
fmt.Println(config)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,6 +57,9 @@ func main() {
|
||||||
if _, err := toml.Decode(string(data), &config); err != nil {
|
if _, err := toml.Decode(string(data), &config); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if c.String("dest") != "" {
|
||||||
|
config.Dest = c.String("dest")
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue