DockerCLI/cmd/docker
Sebastiaan van Stijn fc6be6ad30
cli: pass dockerCLI's in/out/err to cobra cmds
Both the DockerCLI and Cobra Commands provide accessors for Input, Output,
and Error streams (usually STDIN, STDOUT, STDERR). While we were already
passing DockerCLI's Output to Cobra, we were not doing so for the other
streams (and were passing none for plugin commands), potentially resulting
in DockerCLI output/input to mean something else than a Cobra Command's
intput/output/error.

This patch sets them to the same streams when constructing the Cobra
command.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-01-15 13:44:33 +01:00
..
winresources Use goversioninfo to create Windows Version Info 2021-10-11 16:54:22 +02:00
aliases.go build: set default context builder if not specified 2022-11-04 08:42:34 +01:00
builder.go cmd/docker: fix typo in deprecation warning 2022-12-19 13:03:28 +01:00
builder_test.go cmd/docker: fix typo in deprecation warning 2022-12-19 13:03:28 +01:00
builder_windows_test.go build: set default context builder if not specified 2022-11-04 08:42:34 +01:00
completions.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
docker.go cli: pass dockerCLI's in/out/err to cobra cmds 2023-01-15 13:44:33 +01:00
docker_test.go Adopt Cobra completion v2 to support completion by CLI plugins 2022-05-12 12:59:10 +02:00
docker_windows_386.go Use goversioninfo to create Windows Version Info 2021-10-11 16:54:22 +02:00
docker_windows_amd64.go Use goversioninfo to create Windows Version Info 2021-10-11 16:54:22 +02:00
docker_windows_arm.go Use goversioninfo to create Windows Version Info 2021-10-11 16:54:22 +02:00
docker_windows_arm64.go Use goversioninfo to create Windows Version Info 2021-10-11 16:54:22 +02:00