Skip to content

Commit 77eba0b

Browse files
gtrrz-victorclaude
andcommitted
fix(deps): adapt to glamour v0.10 style config relocation
glamour v0.10 moved DarkStyleConfig and LightStyleConfig out of the top-level package and into github.com/charmbracelet/glamour/styles. Import the subpackage as glamourstyles to avoid shadowing the local styles variable, and switch the references over. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 12f4cc8 commit 77eba0b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cmd/entire/cli/dispatch_tui.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
tea "github.com/charmbracelet/bubbletea"
1212
"github.com/charmbracelet/glamour"
1313
"github.com/charmbracelet/glamour/ansi"
14+
glamourstyles "github.com/charmbracelet/glamour/styles"
1415
"github.com/charmbracelet/lipgloss"
1516
dispatchpkg "github.com/entireio/cli/cmd/entire/cli/dispatch"
1617
"github.com/muesli/termenv"
@@ -163,9 +164,9 @@ func dispatchMarkdownStyles() ansi.StyleConfig {
163164
func dispatchMarkdownStylesForBackground(darkBackground bool) ansi.StyleConfig {
164165
var styles ansi.StyleConfig
165166
if darkBackground {
166-
styles = glamour.DarkStyleConfig
167+
styles = glamourstyles.DarkStyleConfig
167168
} else {
168-
styles = glamour.LightStyleConfig
169+
styles = glamourstyles.LightStyleConfig
169170
}
170171

171172
if darkBackground {

0 commit comments

Comments
 (0)