mirror of https://github.com/docker/cli.git
The manager only requires the CLI's configuration; define a shallow interface for this so that we don't have to import cli/command. In addition to the CLI's configuration, `runHooks` also used the CLI's configured StdErr output. We set the Cobra input and output streams to be the same as the DockerCLI outputs in [newDockerCommand] and [newPluginCommand], so we can get this from the Cobra command. [newDockerCommand]: |
||
|---|---|---|
| .. | ||
| examples/helloworld | ||
| hooks | ||
| manager | ||
| plugin | ||
| socket | ||