diff options
| author | Jeff Carr <[email protected]> | 2019-05-23 00:12:18 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-23 00:12:18 -0700 |
| commit | cf9fe10d1eac590a60c4007f1ec5b33bf56c5c94 (patch) | |
| tree | 4c1001d42b67da1185c9815d95b6efa4cd745a27 /splash.go | |
| parent | 0ac47b65bd3fd8b367f814ba1a5fcaa24a7778fa (diff) | |
display golang build version & git commit
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'splash.go')
| -rw-r--r-- | splash.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |
