use global Version variable

This commit is contained in:
Robert Kaussow 2020-02-03 01:17:07 +01:00
parent 82e6896c06
commit 1bb83d5509
1 changed files with 3 additions and 4 deletions

View File

@ -8,15 +8,14 @@ import (
"github.com/xoxys/url-parser/commands" "github.com/xoxys/url-parser/commands"
) )
var ( // Version of current build
version = "0.1.0" var Version = "devel"
)
func main() { func main() {
app := cli.NewApp() app := cli.NewApp()
app.Name = "url-parser" app.Name = "url-parser"
app.Usage = "Parse URL and shows the part of it." app.Usage = "Parse URL and shows the part of it."
app.Version = version app.Version = Version
app.Action = commands.Run app.Action = commands.Run
app.Flags = globalFlags() app.Flags = globalFlags()
app.Commands = configCommands() app.Commands = configCommands()