cli/cli-plugins/manager
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
..
candidate.go
candidate_test.go
cobra.go cli-plugins/manager: use shallower interface 2025-03-05 12:04:49 +01:00
cobra_test.go
error.go
error_test.go
hooks.go cli-plugins/manager: use shallower interface 2025-03-05 12:04:49 +01:00
hooks_test.go
manager.go cli-plugins/manager: use shallower interface 2025-03-05 12:04:49 +01:00
manager_test.go
manager_unix.go
manager_windows.go
metadata.go
plugin.go
suffix_unix.go
suffix_windows.go
telemetry.go cli-plugins/manager: move OTEL-related code to separate file 2025-03-03 14:24:00 +01:00