Skip to content

Commit

Permalink
Merge pull request #35 from viktorbenei/master
Browse files Browse the repository at this point in the history
version number: 0.9.1 + changed the format of the -version print (to …
  • Loading branch information
viktorbenei committed Jul 17, 2015
2 parents bf7d6a1 + c6d4624 commit 67bb243
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cli

import (
"fmt"
"io/ioutil"
"os"
"path"
Expand Down Expand Up @@ -66,6 +67,10 @@ func before(c *cli.Context) error {
return nil
}

func printVersion(c *cli.Context) {
fmt.Fprintf(c.App.Writer, "%v\n", c.App.Version)
}

// Run the Envman CLI.
func Run() {
// Read piped data
Expand All @@ -78,10 +83,12 @@ func Run() {
}

// Parse cl
cli.VersionPrinter = printVersion

app := cli.NewApp()
app.Name = path.Base(os.Args[0])
app.Usage = "Environment variable manager"
app.Version = "0.0.7"
app.Version = "0.9.1"

app.Author = ""
app.Email = ""
Expand Down

0 comments on commit 67bb243

Please sign in to comment.