fix: use charm.land import path for bubbletea

This commit is contained in:
Ayman Bagabas 2025-11-04 14:54:08 -05:00
parent ffc9ec20b7
commit 84fd71dae6
No known key found for this signature in database
GPG Key ID: C8D51D2157C919AC
21 changed files with 22 additions and 19 deletions

View File

@ -7,7 +7,7 @@ import (
"sync/atomic"
"time"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
)

View File

@ -12,7 +12,7 @@ import (
"sync/atomic"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
"github.com/dustin/go-humanize"
)

1
go.mod
View File

@ -18,6 +18,7 @@ require (
)
require (
charm.land/bubbletea/v2 v2.0.0-beta.6.0.20251104195021-b8645799fe45 // indirect
github.com/aymanbagabas/go-udiff v0.3.1 // indirect
github.com/charmbracelet/colorprofile v0.3.2 // indirect
github.com/charmbracelet/ultraviolet v0.0.0-20251104185819-20e68c88fe84 // indirect

2
go.sum
View File

@ -1,3 +1,5 @@
charm.land/bubbletea/v2 v2.0.0-beta.6.0.20251104195021-b8645799fe45 h1:fTulbdntGS0fp4xLeDO1+myFIwJNBNXO0pZ6SHs1oM0=
charm.land/bubbletea/v2 v2.0.0-beta.6.0.20251104195021-b8645799fe45/go.mod h1:001PaYn0OSAHMEEZ5d2Oh3E6hA6vs5LtYvQOAZgIiao=
github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ=
github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE=
github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=

View File

@ -5,7 +5,7 @@ import (
"strings"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
)

View File

@ -6,7 +6,7 @@ import (
"strings"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/x/ansi"
)

View File

@ -11,7 +11,7 @@ import (
"strings"
"time"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/x/ansi"
"github.com/sahilm/fuzzy"

View File

@ -8,7 +8,7 @@ import (
"strings"
"testing"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
)
type item string

View File

@ -8,7 +8,7 @@ import (
"fmt"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
)
// Type specifies the way we render pagination.

View File

@ -3,7 +3,7 @@ package paginator
import (
"testing"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
)
func TestNew(t *testing.T) {

View File

@ -9,7 +9,7 @@ import (
"sync/atomic"
"time"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/harmonica"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/x/ansi"

View File

@ -5,7 +5,7 @@ import (
"sync/atomic"
"time"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
)

View File

@ -5,7 +5,7 @@ import (
"sync/atomic"
"time"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
)
var lastID int64

View File

@ -7,7 +7,7 @@ import (
"github.com/charmbracelet/bubbles/v2/help"
"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/bubbles/v2/viewport"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
"github.com/mattn/go-runewidth"
)

View File

@ -12,13 +12,13 @@ import (
"time"
"unicode"
tea "charm.land/bubbletea/v2"
"github.com/atotto/clipboard"
"github.com/charmbracelet/bubbles/v2/cursor"
"github.com/charmbracelet/bubbles/v2/internal/memoization"
"github.com/charmbracelet/bubbles/v2/internal/runeutil"
"github.com/charmbracelet/bubbles/v2/key"
"github.com/charmbracelet/bubbles/v2/viewport"
tea "github.com/charmbracelet/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/x/ansi"
rw "github.com/mattn/go-runewidth"

View File

@ -7,7 +7,7 @@ import (
"unicode"
"github.com/MakeNowJust/heredoc"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/x/ansi"
)

View File

@ -4,7 +4,7 @@ import (
"image/color"
"time"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
)

View File

@ -12,7 +12,7 @@ import (
"github.com/charmbracelet/bubbles/v2/cursor"
"github.com/charmbracelet/bubbles/v2/internal/runeutil"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
rw "github.com/mattn/go-runewidth"
"github.com/rivo/uniseg"

View File

@ -6,7 +6,7 @@ import (
"strings"
"testing"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
)
func Test_CurrentSuggestion(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"sync/atomic"
"time"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
)
var lastID int64

View File

@ -7,7 +7,7 @@ import (
"strings"
"github.com/charmbracelet/bubbles/v2/key"
tea "github.com/charmbracelet/bubbletea/v2"
tea "charm.land/bubbletea/v2"
"github.com/charmbracelet/lipgloss/v2"
"github.com/charmbracelet/x/ansi"
)