cli/cli-plugins
Sebastiaan van Stijn 8dcde50b6e
cli-plugins/manager: use shallower interface
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]: ea1f10b440/cmd/docker/docker.go (L148-L150)
[newPluginCommand]: ea1f10b440/cli-plugins/plugin/plugin.go (L166-L168)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-03-05 12:04:49 +01:00
..
examples/helloworld cli-plugins: minor cleanups: use Println 2025-02-03 12:18:07 +01:00
hooks cli-plugins: minor cleanups: use Println 2025-02-03 12:18:07 +01:00
manager cli-plugins/manager: use shallower interface 2025-03-05 12:04:49 +01:00
plugin cmd/docker: enable cobra completion descriptions 2025-01-17 14:30:11 +01:00
socket plugins: don't panic on Close if PluginServer nil 2024-08-07 14:04:31 +01:00