STYLE: improved logging output
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user