Skip to content

Commit 1a261e3

Browse files
committed
image/tree: Use streams interface
Signed-off-by: Paweł Gronowski <[email protected]>
1 parent 30d597d commit 1a261e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/command/image/tree.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ func getPossibleChips(view treeView) (chips []imageChip) {
224224
return possible
225225
}
226226

227-
func printImageTree(dockerCLI command.Cli, view treeView) {
228-
if streamRedirected(dockerCLI.Out()) {
229-
_, _ = fmt.Fprintln(dockerCLI.Err(), "WARNING: This output is designed for human readability. For machine-readable output, please use --format.")
227+
func printImageTree(outs command.Streams, view treeView) {
228+
if streamRedirected(outs.Out()) {
229+
_, _ = fmt.Fprintln(outs.Err(), "WARNING: This output is designed for human readability. For machine-readable output, please use --format.")
230230
}
231231

232-
out := tui.NewOutput(dockerCLI.Out())
232+
out := tui.NewOutput(outs.Out())
233233
_, width := out.GetTtySize()
234234
if width == 0 {
235235
width = 80

0 commit comments

Comments
 (0)