mirror of https://github.com/docker/cli.git
2e01bdae1b
commands comes in the form of `rootCmd 1stCmd 2ndCmd` and the `tryRunPluginHelp()` function takes the command name to run plugin help in the form `docker-<command name>`, if command name matches a plugin name it will display the wrong help message. to make sure we're using 1stCmd level we check if the root command is the same as the command parent. e.g. `docker swarm init --help` ``` docker: is the root command swarm : 1st level command init : 2nd level command --help: is a flag ``` this approach is not taking in consideration if a plugin and 1st level command matches, for example `docker foo` command and `docker-foo` plugin. Signed-off-by: Hernan Garcia <hernandanielg@gmail.com> Signed-off-by: Hernan Garcia <hernan.garcia@percona.com> |
||
---|---|---|
.. | ||
winresources | ||
aliases.go | ||
builder.go | ||
builder_test.go | ||
builder_windows_test.go | ||
completions.go | ||
docker.go | ||
docker_test.go | ||
docker_windows_386.go | ||
docker_windows_amd64.go | ||
docker_windows_arm.go | ||
docker_windows_arm64.go |