STYLE: improved logging output

This commit is contained in:
zomo
2026-04-16 00:13:24 -05:00
parent 219423f2b3
commit e6329500b5
6 changed files with 138 additions and 23 deletions
+8
View File
@@ -2,10 +2,13 @@ package main
import (
"errors"
"fmt"
"io/fs"
"os"
"path"
"strings"
"github.com/charmbracelet/lipgloss"
)
func Exists(p ...string) (bool, error) {
@@ -27,3 +30,8 @@ func SplitExt(filename string) (string, string) {
}
return name, ext
}
func Renderf(style lipgloss.Style, format string, v ...any) string {
str := fmt.Sprintf(format, v...)
return style.Render(str)
}