display golang build version & git commit
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
0ac47b65bd
commit
cf9fe10d1e
2
gui.go
2
gui.go
|
@ -25,6 +25,8 @@ type GuiDataStructure struct {
|
||||||
CurrentVM string
|
CurrentVM string
|
||||||
MyArea *ui.Area
|
MyArea *ui.Area
|
||||||
Version string
|
Version string
|
||||||
|
GitCommit string
|
||||||
|
GoVersion string
|
||||||
|
|
||||||
// stuff for the splash screen / setup tabs
|
// stuff for the splash screen / setup tabs
|
||||||
cloudWindow *ui.Window
|
cloudWindow *ui.Window
|
||||||
|
|
10
splash.go
10
splash.go
|
@ -29,6 +29,16 @@ func ShowSplashBox(vbox *ui.Box, atest chan int, custom func(int, string)) *ui.B
|
||||||
|
|
||||||
version := "Version: " + Data.Version
|
version := "Version: " + Data.Version
|
||||||
newbox.Append(ui.NewLabel(version), false)
|
newbox.Append(ui.NewLabel(version), false)
|
||||||
|
|
||||||
|
if (Data.GitCommit != "") {
|
||||||
|
tmp := "git rev-list: " + Data.GitCommit
|
||||||
|
newbox.Append(ui.NewLabel(tmp), false)
|
||||||
|
}
|
||||||
|
if (Data.GoVersion != "") {
|
||||||
|
tmp := "go build version: " + Data.GoVersion
|
||||||
|
newbox.Append(ui.NewLabel(tmp), false)
|
||||||
|
}
|
||||||
|
|
||||||
okButton := CreateButton("OK", "CLOSE", custom)
|
okButton := CreateButton("OK", "CLOSE", custom)
|
||||||
newbox.Append(okButton, false)
|
newbox.Append(okButton, false)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue