summaryrefslogtreecommitdiff
path: root/internal/preview
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-11-24 13:04:11 -0500
committerGitHub <noreply@github.com>2024-11-24 13:04:11 -0500
commit218931d6ba6f33f023aa9dc921d0aa0aca5a9f12 (patch)
tree92089835c75f36318c81253d67cf89b18b75f774 /internal/preview
parentef65550765215416195ad1a456408db781e752fd (diff)
feat: add help at the bottom (#5)
* Attemp at using goreleaser * Fix syntax error in .goreleaser.yml * fix: Check roadmap feature for clipboard (README) * feat: add help menu at the bottom (#4) * MVP for a help menu * fix: commented code is evil
Diffstat (limited to 'internal/preview')
-rw-r--r--internal/preview/preview.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/internal/preview/preview.go b/internal/preview/preview.go
index ef4c9f0..eb7d344 100644
--- a/internal/preview/preview.go
+++ b/internal/preview/preview.go
@@ -14,9 +14,7 @@ type Model struct {
hex string
}
-func (m *Model) Color(hex string) {
- m.hex = hex
-}
+func (m *Model) Color(hex string) { m.hex = hex }
func New(hex string) *Model {
return &Model{
@@ -25,13 +23,9 @@ func New(hex string) *Model {
}
}
-func (m Model) Init() tea.Cmd {
- return nil
-}
+func (m Model) Init() tea.Cmd { return nil }
-func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
- return m, nil
-}
+func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, nil }
func (m Model) View() string {
style := lipgloss.NewStyle().Foreground(lipgloss.Color(m.hex))