Skip to content

Commit

Permalink
list/tree: Fix some escape codes included in nonTTY
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Gronowski <[email protected]>
(cherry picked from commit 6979ab0)
Signed-off-by: Paweł Gronowski <[email protected]>
  • Loading branch information
vvoland committed Aug 16, 2024
1 parent f42fa0b commit 7196200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/command/image/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7196200

Please sign in to comment.