diff options
| author | Teddy Wing | 2017-06-03 17:33:19 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-06-03 17:33:19 +0200 | 
| commit | 81791bbf4291e28691ed2cfaaad357613c915174 (patch) | |
| tree | 3f794accf3624808462c8af2f0f7f1c04d05714e /main.go | |
| parent | e8bee60ed342ab4df93bf2fb582706ad7fd42546 (diff) | |
| download | timetasker-81791bbf4291e28691ed2cfaaad357613c915174.tar.bz2 | |
main.go: Move version string to `VERSION` variable
Didn't really like having the application version intermixed with
regular code. This separates it and makes it easier to see.
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 4 | 
1 files changed, 3 insertions, 1 deletions
| @@ -13,6 +13,8 @@ import (  	"gopkg.in/alecthomas/kingpin.v2"  ) +var VERSION string = "0.1.0" +  type Config struct {  	Auth struct {  		Username    string @@ -47,7 +49,7 @@ func main() {  	description := kingpin.Flag("description", "Description of work.").  		Short('m').  		String() -	kingpin.Version("0.1.0") +	kingpin.Version(VERSION)  	kingpin.Parse()  	// Submit time entry | 
