Rename command.VERSION to command.Version

This commit is contained in:
Dan Sosedoff 2018-12-13 22:35:43 -06:00
parent eeb5245cb9
commit 794e5a22c1
3 changed files with 5 additions and 3 deletions

View File

@ -449,7 +449,7 @@ func GetBookmarks(c *gin.Context) {
func GetInfo(c *gin.Context) { func GetInfo(c *gin.Context) {
successResponse(c, gin.H{ successResponse(c, gin.H{
"version": command.VERSION, "version": command.Version,
"git_sha": command.GitCommit, "git_sha": command.GitCommit,
"build_time": command.BuildTime, "build_time": command.BuildTime,
}) })

View File

@ -136,7 +136,7 @@ For proper read-only access please follow postgresql role management documentati
} }
func printVersion() { func printVersion() {
str := fmt.Sprintf("Pgweb v%s", command.VERSION) str := fmt.Sprintf("Pgweb v%s", command.Version)
if command.GitCommit != "" { if command.GitCommit != "" {
str += fmt.Sprintf(" (git: %s)", command.GitCommit) str += fmt.Sprintf(" (git: %s)", command.GitCommit)
} }

View File

@ -1,6 +1,8 @@
package command package command
const VERSION = "0.10.0" const (
Version = "0.10.0"
)
var ( var (
GitCommit string GitCommit string