fix(logs): implement color profiling for log output streams, e.g. disable color on redirect

This commit is contained in:
Pasha Sviderski committed 2026-10-07 13:30:25 +10:00
1 parent d04772dacd
commit a1b6b31e9c
2 files changed
+14 -7

No files matched your search

+3 -1
View File
@@ -3,9 +3,11 @@ package tui
import (
"fmt"
"os"
"charm.land/lipgloss/v2"
)
func PrintWarning(msg string) {
styledMsg := BoldYellow.Render(fmt.Sprintf("WARNING: %s", msg))
fmt.Fprintln(os.Stderr, styledMsg)
lipgloss.Fprintln(os.Stderr, styledMsg)
}