mirror of
https://github.com/thegeeklab/url-parser.git
synced 2024-11-18 03:00:43 +00:00
use global Version variable
This commit is contained in:
parent
82e6896c06
commit
1bb83d5509
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user