add version

This commit is contained in:
Kevin Schoon 2018-01-21 19:46:03 +08:00
parent 499d829860
commit c1350e9056
2 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,7 @@ func main() {
var (
path = app.StringOpt("p path", defaultConfigPath(), "path to the pomo config directory")
)
app.Version("v version", version)
app.Command("start s", "start a new task", start(path))
app.Command("init", "initialize the sqlite database", initialize(path))
app.Command("list l", "list historical tasks", list(path))

3
version.go Normal file
View File

@ -0,0 +1,3 @@
package main
var version = "undefined"