Skip to content

Commit 090e56b

Browse files
committed
inject version
1 parent f129110 commit 090e56b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

footer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/rivo/tview"
88
)
99

10-
var verString = "//safebox //version 1.0 "
10+
var verString = "//safebox //version %v"
1111

1212
func footerWindow() *tview.Flex {
1313
// The bottom row has some info on where we are.
@@ -44,7 +44,7 @@ func refreshFooter() {
4444
SetDynamicColors(true).
4545
SetWrap(false)
4646

47-
fmt.Fprint(versionTextView, verString)
47+
fmt.Fprintf(versionTextView, verString, VERSION)
4848

4949
// flex
5050
layoutFooter.AddItem(layoutShortcuts, 0, 8, false)

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import (
55
"github.com/rivo/tview"
66
)
77

8+
var VERSION = "undefined"
9+
810
// The application.
911
var app *tview.Application
1012

0 commit comments

Comments
 (0)