mirror of https://github.com/maxcnunes/gaper.git
Add version info
This commit is contained in:
parent
afc23e95c9
commit
d6093dc9ea
4
main.go
4
main.go
|
@ -15,6 +15,9 @@ import (
|
|||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
// build info
|
||||
var version = "dev"
|
||||
|
||||
var logger = NewLogger("gaper")
|
||||
|
||||
// exit statuses
|
||||
|
@ -55,6 +58,7 @@ func main() {
|
|||
app := cli.NewApp()
|
||||
app.Name = "gaper"
|
||||
app.Usage = "Used to restart programs when they crash or a watched file changes"
|
||||
app.Version = version
|
||||
|
||||
app.Action = func(c *cli.Context) {
|
||||
args := parseArgs(c)
|
||||
|
|
Loading…
Reference in New Issue