aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-08-06 15:11:13 +0700
committerShulhan <ms@kilabit.info>2022-08-06 15:11:13 +0700
commitcbcd1d10d415036d8bd00c709014cc5272340b1a (patch)
tree3b3595b837bda1e64e5ff386cfe3721860779c1d /cmd
parent422e3b1cfb590e3c22023916bc5ad7d2ae7e3652 (diff)
downloadciigo-cbcd1d10d415036d8bd00c709014cc5272340b1a.tar.xz
all: set the Version automatically set during build
This require that the command build or install using "make build/install".
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ciigo/main.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/ciigo/main.go b/cmd/ciigo/main.go
index fd97e99..8901b91 100644
--- a/cmd/ciigo/main.go
+++ b/cmd/ciigo/main.go
@@ -44,8 +44,6 @@ const (
cmdHelp = "help"
cmdServe = "serve"
cmdVersion = "version"
-
- version = "0.8.2"
)
func main() {
@@ -109,7 +107,7 @@ func main() {
err = ciigo.Serve(&serveOpts)
case cmdVersion:
- fmt.Println(version)
+ fmt.Println(ciigo.Version)
default:
usage()