summaryrefslogtreecommitdiff
path: root/internal/quit
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-11-24 18:19:04 -0500
committerGitHub <noreply@github.com>2024-11-24 18:19:04 -0500
commit26e4f7f11a8c10c48af66ce4f2d4c50d5a2dc760 (patch)
treefd72a6c25b97333487aafcd8c86374d709050840 /internal/quit
parent0a8ed6b216ab58bf0ae0695a89f602e477c9573c (diff)
feat: Notice messages when performing actions (#11)
* Update releaser CI/CD version * feat: Notice messages when performing actions * Showcase notices in demo.gif
Diffstat (limited to 'internal/quit')
-rw-r--r--internal/quit/quit.go14
1 files changed, 5 insertions, 9 deletions
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 }