summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-11-24 02:08:56 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-11-24 02:08:56 -0500
commit4297cde9a75ae43affa00d6dd5fed437b8de2a80 (patch)
treec354df8fd3dccdb8a7e30bc43337ab59ad2e546c /internal
parentc8bcf5289f1b6c364f6f0237b1bf4ccad4e1dcd2 (diff)
Rename go module and update Go version
Diffstat (limited to 'internal')
-rw-r--r--internal/picker/picker.go4
-rw-r--r--internal/slider/slider.go2
-rw-r--r--internal/switcher/switcher.go10
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 {