DockerCLI/cli-plugins
Kevin Alvarez d93d78588d
load plugin command stubs when required
We are currently loading plugin command stubs for every
invocation which still has a significant performance hit.
With this change we are doing this operation only if cobra
completion arg request is found.

- 20.10.23: `docker --version` takes ~15ms
- 23.0.1: `docker --version` takes ~93ms

With this change `docker --version` takes ~9ms

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit c39c711a18)
2023-03-31 16:38:01 +02:00
..
examples/helloworld Always enable experimental features 2020-10-02 15:59:42 +02:00
manager load plugin command stubs when required 2023-03-31 16:38:01 +02:00
plugin cli: pass dockerCLI's in/out/err to cobra cmds 2023-01-15 13:44:33 +01:00