diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-18 01:22:38 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-18 01:22:38 +0200 |
commit | 30f797a8c789e1337968a940ac8794517eef73f1 (patch) | |
tree | cf005db1850b2c3b0de08f0a39e8d048bb99436a /cmd/feed2imap-go.go | |
parent | 17c0664d261e9177bf74f79343d956cb7be78226 (diff) | |
download | feed2imap-go-30f797a8c789e1337968a940ac8794517eef73f1.tar.gz feed2imap-go-30f797a8c789e1337968a940ac8794517eef73f1.tar.bz2 feed2imap-go-30f797a8c789e1337968a940ac8794517eef73f1.zip |
Create cmd/-subdirs
Diffstat (limited to 'cmd/feed2imap-go.go')
-rw-r--r-- | cmd/feed2imap-go.go | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/cmd/feed2imap-go.go b/cmd/feed2imap-go.go deleted file mode 100644 index 498d22c..0000000 --- a/cmd/feed2imap-go.go +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "flag" - "log" - "os" - - "github.com/Necoro/feed2imap-go/internal/config" -) - -var cfgFile = flag.String("f", "config.yml", "configuration file") - -func run() error { - log.Print("Starting up...") - flag.Parse() - - log.Printf("Reading configuration file '%s'", *cfgFile) - if _, err := config.Load(*cfgFile); err != nil { - return err - } - - return nil -} - -func main() { - if err := run(); err != nil { - log.SetOutput(os.Stderr) - log.Print("Error: ", err) - os.Exit(1) - } -} |