diff options
| author | Priyansh <[email protected]> | 2025-08-27 14:57:38 +0530 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2025-08-27 14:57:38 +0530 |
| commit | 28208e8c7b70d00e5d2dc4f5a9fd8deecc083ce7 (patch) | |
| tree | 6e802033fc80aae3b2604a72f4d26986acbf0711 | |
| parent | 40c2e698448c7f1af531d1474cf66c4a07f6c3ed (diff) | |
| download | nectar-28208e8c7b70d00e5d2dc4f5a9fd8deecc083ce7.tar.xz nectar-28208e8c7b70d00e5d2dc4f5a9fd8deecc083ce7.zip | |
Update root screen to display version info
| -rw-r--r-- | screens/root.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/screens/root.go b/screens/root.go index 10d0b62..fee061d 100644 --- a/screens/root.go +++ b/screens/root.go @@ -1,6 +1,10 @@ package screens -import tea "github.com/charmbracelet/bubbletea" +import ( + "fmt" + + tea "github.com/charmbracelet/bubbletea" +) type rootScreen struct{} @@ -26,5 +30,7 @@ func (r *rootScreen) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } func (r *rootScreen) View() string { - return "Welcome to Nectar!\nPress Ctrl+C to exit. Press 'a' to go to the auxiliary screen." + return fmt.Sprintf(`Nectar - Version: %s - Build Date: %s +Press 'a' to go to the auxiliary screen. Press 'q' to quit. +`, globals.version, globals.buildDate) } |
