From 4297cde9a75ae43affa00d6dd5fed437b8de2a80 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 24 Nov 2024 02:08:56 -0500 Subject: Rename go module and update Go version --- internal/picker/picker.go | 4 ++-- internal/slider/slider.go | 2 +- internal/switcher/switcher.go | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'internal') diff --git a/internal/picker/picker.go b/internal/picker/picker.go index 6c0a79a..13b04a5 100644 --- a/internal/picker/picker.go +++ b/internal/picker/picker.go @@ -3,10 +3,10 @@ package picker import ( "fmt" + "github.com/ChausseBenjamin/termpicker/internal/colors" + "github.com/ChausseBenjamin/termpicker/internal/slider" "github.com/charmbracelet/bubbles/key" tea "github.com/charmbracelet/bubbletea" - "github.com/charmbracelet/bubbletea-app-template/internal/colors" - "github.com/charmbracelet/bubbletea-app-template/internal/slider" ) type Model struct { diff --git a/internal/slider/slider.go b/internal/slider/slider.go index d726e7b..884d141 100644 --- a/internal/slider/slider.go +++ b/internal/slider/slider.go @@ -35,7 +35,7 @@ func New(label byte, maxVal int, opts ...progress.Option) Model { func (m Model) Title() string { return fmt.Sprintf("%c", m.label) } func (m Model) Init() tea.Cmd { - return nil + return m.progress.Init() } func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { diff --git a/internal/switcher/switcher.go b/internal/switcher/switcher.go index 7ff7164..eee92df 100644 --- a/internal/switcher/switcher.go +++ b/internal/switcher/switcher.go @@ -3,13 +3,13 @@ package switcher import ( "fmt" + "github.com/ChausseBenjamin/termpicker/internal/colors" + "github.com/ChausseBenjamin/termpicker/internal/picker" + "github.com/ChausseBenjamin/termpicker/internal/preview" + "github.com/ChausseBenjamin/termpicker/internal/quit" + "github.com/ChausseBenjamin/termpicker/internal/util" "github.com/charmbracelet/bubbles/key" tea "github.com/charmbracelet/bubbletea" - "github.com/charmbracelet/bubbletea-app-template/internal/colors" - "github.com/charmbracelet/bubbletea-app-template/internal/picker" - "github.com/charmbracelet/bubbletea-app-template/internal/preview" - "github.com/charmbracelet/bubbletea-app-template/internal/quit" - "github.com/charmbracelet/bubbletea-app-template/internal/util" ) type Model struct { -- cgit v1.2.3