From 963307ad63f402911f82a858240896962f5477d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Fri, 16 Aug 2024 13:23:58 +0200 Subject: [PATCH] list/tree: Remove `Used` column for now MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It won't be populated correctly without moby PR 47501 Signed-off-by: Paweł Gronowski --- cli/command/image/tree.go | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/cli/command/image/tree.go b/cli/command/image/tree.go index 9c762005b137..b572207c9226 100644 --- a/cli/command/image/tree.go +++ b/cli/command/image/tree.go @@ -124,12 +124,10 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error { headerColor := aec.NewBuilder(aec.DefaultF, aec.Bold).ANSI topNameColor := aec.NewBuilder(aec.BlueF, aec.Underline, aec.Bold).ANSI normalColor := aec.NewBuilder(aec.DefaultF).ANSI - greenColor := aec.NewBuilder(aec.GreenF).ANSI if !out.IsTerminal() { headerColor = noColor{} topNameColor = noColor{} normalColor = noColor{} - greenColor = noColor{} warningColor = noColor{} } @@ -166,18 +164,18 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error { return d.ContentSize }, }, - { - Title: "Used", - Align: alignCenter, - Width: 4, - Color: &greenColor, - DetailsValue: func(d *imageDetails) string { - if d.Used { - return "✔" - } - return " " - }, - }, + // TODO: Needs https://github.com/moby/moby/pull/47501 + // { + // Title: "Used", + // Align: alignCenter, + // Width: 4, + // Color: &greenColor, + // DetailsValue: func(d *imageDetails) string { + // if d.Used { + // return "✔" + // } + // return " " + // }, } nameWidth := int(width)