From 40ca43fd44af9bfbd2206d5ee0c87844d161daa2 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Mon, 9 Sep 2024 16:00:49 -0400 Subject: [PATCH] chore(deps): bump github.com/charmbracelet/glamour from 0.7.0 to 0.8.0 (#574) --- go.mod | 5 +++-- go.sum | 4 ++++ pkg/ui/common/style.go | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 556abcc68..e07beb735 100644 --- a/go.mod +++ b/go.mod @@ -7,14 +7,14 @@ toolchain go1.22.0 require ( github.com/charmbracelet/bubbles v0.18.0 github.com/charmbracelet/bubbletea v1.1.0 - github.com/charmbracelet/glamour v0.7.0 + github.com/charmbracelet/glamour v0.8.0 github.com/charmbracelet/lipgloss v0.13.0 github.com/charmbracelet/wish v1.4.3 github.com/dustin/go-humanize v1.0.1 github.com/go-git/go-git/v5 v5.12.0 github.com/matryer/is v1.4.1 github.com/muesli/reflow v0.3.0 - github.com/muesli/termenv v0.15.3-0.20240509142007-81b8f94111d5 + github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 ) @@ -101,6 +101,7 @@ require ( golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect golang.org/x/net v0.27.0 // indirect golang.org/x/sys v0.25.0 // indirect + golang.org/x/term v0.24.0 // indirect golang.org/x/text v0.18.0 // indirect golang.org/x/tools v0.23.0 // indirect google.golang.org/protobuf v1.34.2 // indirect diff --git a/go.sum b/go.sum index 874f7124f..c6eb3a71b 100644 --- a/go.sum +++ b/go.sum @@ -34,6 +34,8 @@ github.com/charmbracelet/git-lfs-transfer v0.1.1-0.20240708204110-bacbfdb68d92 h github.com/charmbracelet/git-lfs-transfer v0.1.1-0.20240708204110-bacbfdb68d92/go.mod h1:UrXUCm3xLQkq15fu7qlXHUMlrhdlXHoi13KH2Dfiits= github.com/charmbracelet/glamour v0.7.0 h1:2BtKGZ4iVJCDfMF229EzbeR1QRKLWztO9dMtjmqZSng= github.com/charmbracelet/glamour v0.7.0/go.mod h1:jUMh5MeihljJPQbJ/wf4ldw2+yBP59+ctV36jASy7ps= +github.com/charmbracelet/glamour v0.8.0 h1:tPrjL3aRcQbn++7t18wOpgLyl8wrOHUEDS7IZ68QtZs= +github.com/charmbracelet/glamour v0.8.0/go.mod h1:ViRgmKkf3u5S7uakt2czJ272WSg2ZenlYEZXT2x7Bjw= github.com/charmbracelet/keygen v0.5.1 h1:zBkkYPtmKDVTw+cwUyY6ZwGDhRxXkEp0Oxs9sqMLqxI= github.com/charmbracelet/keygen v0.5.1/go.mod h1:zznJVmK/GWB6dAtjluqn2qsttiCBhA5MZSiwb80fcHw= github.com/charmbracelet/lipgloss v0.13.0 h1:4X3PPeoWEDCMvzDvGmTajSyYPcZM4+y8sCA/SsA3cjw= @@ -160,6 +162,8 @@ github.com/muesli/roff v0.1.0 h1:YD0lalCotmYuF5HhZliKWlIx7IEhiXeSfq7hNjFqGF8= github.com/muesli/roff v0.1.0/go.mod h1:pjAHQM9hdUUwm/krAfrLGgJkXJ+YuhtsfZ42kieB2Ig= github.com/muesli/termenv v0.15.3-0.20240509142007-81b8f94111d5 h1:NiONcKK0EV5gUZcnCiPMORaZA0eBDc+Fgepl9xl4lZ8= github.com/muesli/termenv v0.15.3-0.20240509142007-81b8f94111d5/go.mod h1:hxSnBBYLK21Vtq/PHd0S2FYCxBXzBua8ov5s1RobyRQ= +github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a h1:2MaM6YC3mGu54x+RKAA6JiFFHlHDY1UbkxqppT7wYOg= +github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a/go.mod h1:hxSnBBYLK21Vtq/PHd0S2FYCxBXzBua8ov5s1RobyRQ= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4= diff --git a/pkg/ui/common/style.go b/pkg/ui/common/style.go index 5194820cd..06d7ce3d2 100644 --- a/pkg/ui/common/style.go +++ b/pkg/ui/common/style.go @@ -1,8 +1,8 @@ package common import ( - "github.com/charmbracelet/glamour" gansi "github.com/charmbracelet/glamour/ansi" + "github.com/charmbracelet/glamour/styles" "github.com/muesli/termenv" ) @@ -16,7 +16,7 @@ func strptr(s string) *string { // StyleConfig returns the default Glamour style configuration. func StyleConfig() gansi.StyleConfig { noColor := strptr("") - s := glamour.DarkStyleConfig + s := styles.DarkStyleConfig s.H1.BackgroundColor = noColor s.H1.Prefix = "# " s.H1.Suffix = ""