From 26e4f7f11a8c10c48af66ce4f2d4c50d5a2dc760 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 24 Nov 2024 18:19:04 -0500 Subject: feat: Notice messages when performing actions (#11) * Update releaser CI/CD version * feat: Notice messages when performing actions * Showcase notices in demo.gif --- internal/quit/quit.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'internal/quit/quit.go') diff --git a/internal/quit/quit.go b/internal/quit/quit.go index de1e3b4..ac11abc 100644 --- a/internal/quit/quit.go +++ b/internal/quit/quit.go @@ -2,16 +2,12 @@ package quit import tea "github.com/charmbracelet/bubbletea" +const byeMsg = "Goodbye!\n" + type Model struct{} -func (m Model) Init() tea.Cmd { - return nil -} +func (m Model) Init() tea.Cmd { return nil } -func (m Model) Update(tea.Msg) (tea.Model, tea.Cmd) { - return m, nil -} +func (m Model) Update(tea.Msg) (tea.Model, tea.Cmd) { return m, nil } -func (m Model) View() string { - return "Goodbye!\n" -} +func (m Model) View() string { return byeMsg } -- cgit v1.2.3