From 40f7f691d4143c7be4dc72babb2b5288cbfef45c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 3 May 2020 15:53:53 +0200 Subject: Explicit version info --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 074c14b..b959076 100644 --- a/main.go +++ b/main.go @@ -10,6 +10,7 @@ import ( "github.com/Necoro/feed2imap-go/internal/imap" "github.com/Necoro/feed2imap-go/pkg/config" "github.com/Necoro/feed2imap-go/pkg/log" + "github.com/Necoro/feed2imap-go/pkg/version" ) var printVersion = flag.Bool("version", false, "print version and exit") @@ -51,7 +52,7 @@ func processFeed(feed *feed.Feed, client *imap.Client, dryRun bool) { func run() error { flag.Parse() if *printVersion { - println("Feed2Imap-Go, version " + config.Version()) + println("Feed2Imap-Go, version " + version.Version()) return nil } -- cgit v1.2.3