Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 963307a

Browse files
committed
list/tree: Remove Used column for now
It won't be populated correctly without moby PR 47501 Signed-off-by: Paweł Gronowski <[email protected]>
1 parent 3091470 commit 963307a

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

cli/command/image/tree.go

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,10 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error {
124124
headerColor := aec.NewBuilder(aec.DefaultF, aec.Bold).ANSI
125125
topNameColor := aec.NewBuilder(aec.BlueF, aec.Underline, aec.Bold).ANSI
126126
normalColor := aec.NewBuilder(aec.DefaultF).ANSI
127-
greenColor := aec.NewBuilder(aec.GreenF).ANSI
128127
if !out.IsTerminal() {
129128
headerColor = noColor{}
130129
topNameColor = noColor{}
131130
normalColor = noColor{}
132-
greenColor = noColor{}
133131
warningColor = noColor{}
134132
}
135133

@@ -166,18 +164,18 @@ func printImageTree(dockerCLI command.Cli, images []topImage) error {
166164
return d.ContentSize
167165
},
168166
},
169-
{
170-
Title: "Used",
171-
Align: alignCenter,
172-
Width: 4,
173-
Color: &greenColor,
174-
DetailsValue: func(d *imageDetails) string {
175-
if d.Used {
176-
return "✔"
177-
}
178-
return " "
179-
},
180-
},
167+
// TODO: Needs https://github.com/moby/moby/pull/47501
168+
// {
169+
// Title: "Used",
170+
// Align: alignCenter,
171+
// Width: 4,
172+
// Color: &greenColor,
173+
// DetailsValue: func(d *imageDetails) string {
174+
// if d.Used {
175+
// return "✔"
176+
// }
177+
// return " "
178+
// },
181179
}
182180

183181
nameWidth := int(width)

0 commit comments

Comments
 (0)