We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f129110 commit 090e56bCopy full SHA for 090e56b
footer.go
@@ -7,7 +7,7 @@ import (
7
"github.com/rivo/tview"
8
)
9
10
-var verString = "//safebox //version 1.0 "
+var verString = "//safebox //version %v"
11
12
func footerWindow() *tview.Flex {
13
// The bottom row has some info on where we are.
@@ -44,7 +44,7 @@ func refreshFooter() {
44
SetDynamicColors(true).
45
SetWrap(false)
46
47
- fmt.Fprint(versionTextView, verString)
+ fmt.Fprintf(versionTextView, verString, VERSION)
48
49
// flex
50
layoutFooter.AddItem(layoutShortcuts, 0, 8, false)
main.go
@@ -5,6 +5,8 @@ import (
5
6
+var VERSION = "undefined"
+
// The application.
var app *tview.Application
0 commit comments