refactor: migrate Charm libraries to v2

Import paths moved to charm.land/*/v2 and the v1 paths no longer resolve.
Ports View() -> tea.View, AltScreen/MouseMode to View fields, KeyPressMsg,
and the new progress/viewport constructors. Styled output outside Bubble
Tea switched to lipgloss.Print* because v2 downsamples colour at the output
layer. vendorHash refreshed.
This commit is contained in:
aykhans committed 2026-08-17 17:21:13 +04:00
1 parent 8552aab3b1
commit d08b6dc222
9 files changed
+105 -99

No files matched your search

+18
View File
@@ -55,6 +55,17 @@ linters:
- wastedassign
settings:
errcheck:
# Lip Gloss print helpers wrap fmt.Fprint* and fail only on unactionable
# write errors (broken pipe, full disk). errcheck excludes the fmt
# equivalents by default; these are excluded for the same reason.
exclude-functions:
- charm.land/lipgloss/v2.Print
- charm.land/lipgloss/v2.Printf
- charm.land/lipgloss/v2.Println
- charm.land/lipgloss/v2.Fprint
- charm.land/lipgloss/v2.Fprintf
- charm.land/lipgloss/v2.Fprintln
staticcheck:
checks:
- "all"
@@ -81,6 +92,13 @@ linters:
- staticcheck
text: "SA5011"
# Counterpart to the errcheck exclusions above: gosec's G104 keeps its
# own allowlist, which covers fmt but not the Lip Gloss print helpers.
- linters:
- gosec
text: "G104"
source: "lipgloss\\.(Print|Printf|Println|Fprint|Fprintf|Fprintln)\\("
formatters:
enable:
- gofmt