fix(deps): migrate bubbles and lipgloss to v2

Import the progress bar from charm.land/bubbles/v2 and styles from
charm.land/lipgloss/v2. Replace WithDefaultGradient with WithDefaultBlend,
which uses the same colours.
This commit is contained in:
2026-10-04 10:12:29 +01:00
parent 305a215852
commit c348f90e3e
4 changed files with 31 additions and 38 deletions
+3 -3
View File
@@ -10,8 +10,8 @@ import (
"strings"
"time"
"github.com/charmbracelet/bubbles/progress"
"github.com/charmbracelet/lipgloss"
"charm.land/bubbles/v2/progress"
"charm.land/lipgloss/v2"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/config"
"github.com/go-git/go-git/v5/plumbing"
@@ -31,7 +31,7 @@ type commitProgressBar struct {
func newCommitProgressBar(label string) *commitProgressBar {
p := progress.New(
progress.WithDefaultGradient(),
progress.WithDefaultBlend(),
progress.WithWidth(40),
)
return &commitProgressBar{
+3 -3
View File
@@ -8,8 +8,8 @@ import (
"strings"
"time"
"github.com/charmbracelet/bubbles/progress"
"github.com/charmbracelet/lipgloss"
"charm.land/bubbles/v2/progress"
"charm.land/lipgloss/v2"
"github.com/lukaszraczylo/git-velocity/internal/domain/models"
"github.com/shurcooL/githubv4"
"golang.org/x/oauth2"
@@ -26,7 +26,7 @@ type progressBar struct {
func newProgressBar(label string, total int) *progressBar {
p := progress.New(
progress.WithDefaultGradient(),
progress.WithDefaultBlend(),
progress.WithWidth(40),
)
return &progressBar{