diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/picker/picker.go | 4 | ||||
-rw-r--r-- | internal/slider/slider.go | 2 | ||||
-rw-r--r-- | internal/switcher/switcher.go | 10 |
3 files changed, 8 insertions, 8 deletions
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 { |