From 1bb83d55098c5164c2baeb7bb306281260ac82e2 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 3 Feb 2020 01:17:07 +0100 Subject: [PATCH] use global Version variable --- cmd/url-parser/main.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/url-parser/main.go b/cmd/url-parser/main.go index 54f11be..a291c63 100644 --- a/cmd/url-parser/main.go +++ b/cmd/url-parser/main.go @@ -8,15 +8,14 @@ import ( "github.com/xoxys/url-parser/commands" ) -var ( - version = "0.1.0" -) +// Version of current build +var Version = "devel" func main() { app := cli.NewApp() app.Name = "url-parser" app.Usage = "Parse URL and shows the part of it." - app.Version = version + app.Version = Version app.Action = commands.Run app.Flags = globalFlags() app.Commands = configCommands()