Printing out version numbers

This commit is contained in:
Jeremy Saenz
2013-07-20 08:44:09 -07:00
parent 04490dabec
commit d8cf49f0dd
2 changed files with 22 additions and 6 deletions

13
help.go
View File

@@ -1,8 +1,11 @@
package cli
import "os"
import "text/tabwriter"
import "text/template"
import (
"fmt"
"os"
"text/tabwriter"
"text/template"
)
var helpCommand = Command{
Name: "help",
@@ -32,3 +35,7 @@ GLOBAL OPTIONS:
w.Flush()
},
}
func showVersion(c *Context) {
fmt.Printf("%v version %v\n", c.App.Name, c.App.Version)
}