Skip to content

Commit dd2048c

Browse files
committed
feat(ui): display version in welcome screen
- Show current version in welcome screen title - Format: Newsletter CLI v0.1.4 - Only displays when version is available
1 parent eff9f92 commit dd2048c

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

internal/ui/app.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,11 @@ func (m appModel) viewWelcome() string {
602602
"A beautiful TUI-based CLI to analyze, list and unsubscribe\nfrom newsletters using your IMAP inbox.",
603603
)
604604

605+
// Update title with version if available
606+
if m.currentVersion != "" {
607+
m.welcomeList.Title = fmt.Sprintf("📬 Newsletter CLI v%s", m.currentVersion)
608+
}
609+
605610
listView := docStyle.Render(m.welcomeList.View())
606611

607612
// Show update notification if available

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import "github.com/loickal/newsletter-cli/cmd"
44

5-
var version = "0.1.3"
5+
var version = "0.1.4"
66

77
func main() {
88
cmd.SetVersion(version)

newsletter-cli

10.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)