Skip to content

Commit

Permalink
Add version info
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcnunes committed Jun 21, 2018
1 parent afc23e9 commit d6093dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Expand Up @@ -15,6 +15,9 @@ import (
"github.com/urfave/cli"
)

// build info
var version = "dev"

var logger = NewLogger("gaper")

// exit statuses
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d6093dc

Please sign in to comment.