aboutsummaryrefslogtreecommitdiff
path: root/cmd/feed2imap-go/main.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-18 18:13:38 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-18 18:13:38 +0200
commitaa225a88672c9a6bbe8ee3c42aa9fbc9ebfb7b71 (patch)
treed085e06934abeba1dd9ebfec10af263414b52903 /cmd/feed2imap-go/main.go
parentb2f7bcf657790931411bda4fd2d0a9418aec8489 (diff)
downloadfeed2imap-go-aa225a88672c9a6bbe8ee3c42aa9fbc9ebfb7b71.tar.gz
feed2imap-go-aa225a88672c9a6bbe8ee3c42aa9fbc9ebfb7b71.tar.bz2
feed2imap-go-aa225a88672c9a6bbe8ee3c42aa9fbc9ebfb7b71.zip
Move feed2imap-go/main.go to toplevel again
Diffstat (limited to 'cmd/feed2imap-go/main.go')
-rw-r--r--cmd/feed2imap-go/main.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/cmd/feed2imap-go/main.go b/cmd/feed2imap-go/main.go
deleted file mode 100644
index 498d22c..0000000
--- a/cmd/feed2imap-go/main.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)
- }
-}