use global Version variable

This commit is contained in:
Robert Kaussow 2020-02-03 01:17:07 +01:00
parent 82e6896c06
commit 1bb83d5509

View File

@ -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()