mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Currently, the plugin.Run command constructs the DockerCli using the default options, assuming plugins run with all the same options as the CLI itself; to customize the CLI there's a "Apply" option, but this means mutating the CLI after it's already constructed, which is not ideal. This patch adds a variadic ops argument to allow CLI plugins to pass custom options to use for the CLI, so that there's no need to mutate its config in most cases. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
7.1 KiB
7.1 KiB