update cmd Version

This commit is contained in:
aichy126 2023-04-11 16:17:35 +08:00
parent f50414adcf
commit 83c2c24683
2 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,7 @@ LABEL maintainer="aichy@sf.com"
ARG GOPROXY
ENV GOPROXY ${GOPROXY:-direct}
# ENV GOPROXY=https://goproxy.io,direct
ENV GOPATH /go
ENV GOROOT /usr/local/go

View File

@ -1,6 +1,7 @@
package answercmd
import (
"fmt"
"os"
"time"
@ -56,6 +57,7 @@ func runApp() {
constant.Version = Version
constant.Revision = Revision
schema.AppStartTime = time.Now()
fmt.Println("answer Version:", constant.Version, " Revision:", constant.Revision)
defer cleanup()
if err := app.Run(); err != nil {