Rename NewCLILogger to NewCLI

This commit is contained in:
Elara 2022-12-19 19:28:33 -08:00
parent 1a2d4a1b4f
commit 8aeea81afa

2
cli.go
View File

@ -33,7 +33,7 @@ type CLILogger struct {
PanicColor color.Color PanicColor color.Color
} }
func NewCLILogger(out io.Writer) *CLILogger { func NewCLI(out io.Writer) *CLILogger {
useColor := false useColor := false
if f, ok := out.(*os.File); ok { if f, ok := out.(*os.File); ok {
useColor = isatty.IsTerminal(f.Fd()) useColor = isatty.IsTerminal(f.Fd())