use global Version variable
This commit is contained in:
parent
82e6896c06
commit
1bb83d5509
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue