From c1350e90561643431578906c3967a966fd6d34d0 Mon Sep 17 00:00:00 2001 From: Kevin Schoon Date: Sun, 21 Jan 2018 19:46:03 +0800 Subject: [PATCH] add version --- main.go | 1 + version.go | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 version.go diff --git a/main.go b/main.go index 519d1ec..9b02488 100644 --- a/main.go +++ b/main.go @@ -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)) diff --git a/version.go b/version.go new file mode 100644 index 0000000..2eddb8a --- /dev/null +++ b/version.go @@ -0,0 +1,3 @@ +package main + +var version = "undefined"