From 1a261e3f50497af2822f9d8729af278558d55a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Tue, 4 Nov 2025 13:30:12 +0100 Subject: [PATCH] image/tree: Use streams interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Gronowski --- cli/command/image/tree.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/command/image/tree.go b/cli/command/image/tree.go index e3488f0ca0..670c6bf043 100644 --- a/cli/command/image/tree.go +++ b/cli/command/image/tree.go @@ -224,12 +224,12 @@ func getPossibleChips(view treeView) (chips []imageChip) { return possible } -func printImageTree(dockerCLI command.Cli, view treeView) { - if streamRedirected(dockerCLI.Out()) { - _, _ = fmt.Fprintln(dockerCLI.Err(), "WARNING: This output is designed for human readability. For machine-readable output, please use --format.") +func printImageTree(outs command.Streams, view treeView) { + if streamRedirected(outs.Out()) { + _, _ = fmt.Fprintln(outs.Err(), "WARNING: This output is designed for human readability. For machine-readable output, please use --format.") } - out := tui.NewOutput(dockerCLI.Out()) + out := tui.NewOutput(outs.Out()) _, width := out.GetTtySize() if width == 0 { width = 80