mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 22:24:54 +00:00
fix(logs): implement color profiling for log output streams, e.g. disable color on redirect
This commit is contained in:
1 parent
d04772dacd
commit
a1b6b31e9c
2 files changed
+14
-7
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user