DockerCLI/e2e/cli-plugins
Kevin Alvarez c39c711a18
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>
2023-03-28 06:16:55 +02:00
..
plugins e2e: fix formatting of comments 2020-01-16 12:46:07 +01:00
testdata Replace tab with spaces in usage output 2020-10-02 15:41:17 +02:00
config_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
dial_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
flags_test.go format code with gofumpt 2022-09-30 11:59:11 +02:00
help_test.go e2e: cleanup TestGlobalHelp() to be less brittle 2022-03-27 10:42:48 +02:00
main_test.go e2e: Add a TestMain for cli plugins tests 2019-04-03 15:06:34 +01:00
run_test.go load plugin command stubs when required 2023-03-28 06:16:55 +02:00
util_test.go format code with gofumpt 2022-09-30 11:59:11 +02:00