mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-15 03:36:33 +03:00
Rename command.VERSION to command.Version
This commit is contained in:
parent
eeb5245cb9
commit
794e5a22c1
@ -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,
|
||||||
})
|
})
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package command
|
package command
|
||||||
|
|
||||||
const VERSION = "0.10.0"
|
const (
|
||||||
|
Version = "0.10.0"
|
||||||
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
GitCommit string
|
GitCommit string
|
||||||
|
Loading…
Reference in New Issue
Block a user