Rename NewCLILogger to NewCLI
This commit is contained in:
parent
1a2d4a1b4f
commit
8aeea81afa
2
cli.go
2
cli.go
@ -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())
|
||||||
|
Reference in New Issue
Block a user