Add version info

This commit is contained in:
Max Claus Nunes 2018-06-21 00:40:40 -03:00
parent afc23e95c9
commit d6093dc9ea
1 changed files with 4 additions and 0 deletions

View File

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