summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui.go2
-rw-r--r--splash.go10
2 files changed, 12 insertions, 0 deletions
diff --git a/gui.go b/gui.go
index b1719cd..c1bce42 100644
--- a/gui.go
+++ b/gui.go
@@ -25,6 +25,8 @@ type GuiDataStructure struct {
CurrentVM string
MyArea *ui.Area
Version string
+ GitCommit string
+ GoVersion string
// stuff for the splash screen / setup tabs
cloudWindow *ui.Window
diff --git a/splash.go b/splash.go
index 6304864..db30f78 100644
--- a/splash.go
+++ b/splash.go
@@ -29,6 +29,16 @@ func ShowSplashBox(vbox *ui.Box, atest chan int, custom func(int, string)) *ui.B
version := "Version: " + Data.Version
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)
newbox.Append(okButton, false)