mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
list/tree: Fix some escape codes included in nonTTY
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@@ -338,8 +338,8 @@ func (h imgColumn) PrintR(clr aec.ANSI, s string) string {
|
||||
|
||||
type noColor struct{}
|
||||
|
||||
func (a noColor) With(ansi ...aec.ANSI) aec.ANSI {
|
||||
return aec.NewBuilder(ansi...).ANSI
|
||||
func (a noColor) With(_ ...aec.ANSI) aec.ANSI {
|
||||
return a
|
||||
}
|
||||
|
||||
func (a noColor) Apply(s string) string {
|
||||
|
||||
Reference in New Issue
Block a user