From 74973adaa5e4382ccecbe436eef726a3277ba830 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 4 Nov 2022 18:03:42 +0100 Subject: [PATCH] cli/command: embed "Streams" interface in "Cli" The DockerCLI interface was repeating the Streams interface. Embed the interface to make it more transparent that they're the same. Signed-off-by: Sebastiaan van Stijn --- cli/command/cli.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cli/command/cli.go b/cli/command/cli.go index b4fc151474..33a5d90bf7 100644 --- a/cli/command/cli.go +++ b/cli/command/cli.go @@ -48,9 +48,7 @@ type Streams interface { // Cli represents the docker command line client. type Cli interface { Client() client.APIClient - Out() *streams.Out - Err() io.Writer - In() *streams.In + Streams SetIn(in *streams.In) Apply(ops ...DockerCliOption) error ConfigFile() *configfile.ConfigFile