DockerCLI/cli-plugins/manager
Ian Campbell baabf6e8ad Ensure that plugins are only listed once in help outputs.
They were listed twice in `docker --help` (but not `docker help`), since the
stubs were added in both `tryRunPluginHelp` and the `setHelpFunc` closure.

Calling `AddPluginStubCommands` earlier in `setHelpFunc` before the call to
`tryRunPluginHelp` is sufficient. Also it is no longer necessary to add just
valid plugins (`tryRunPluginHelp` handles invalid plugins correctly) so remove
that logic (which was in any case broken for e.g. `docker --help`).

Update the e2e test to check for duplicate entries and also to test `docker
--help` which was previously missed.

Signed-off-by: Ian Campbell <ijc@docker.com>
2019-01-30 13:55:42 +00:00
..
candidate.go Add support for running a CLI plugin 2019-01-30 13:44:04 +00:00
candidate_test.go Integrate CLI plugins into `docker info` 2019-01-30 13:45:26 +00:00
cobra.go Ensure that plugins are only listed once in help outputs. 2019-01-30 13:55:42 +00:00
error.go Integrate CLI plugins into `docker info` 2019-01-30 13:45:26 +00:00
error_test.go Integrate CLI plugins into `docker info` 2019-01-30 13:45:26 +00:00
manager.go Ensure plugins default search path obeys `--config` 2019-01-30 13:45:26 +00:00
manager_test.go Ensure plugins default search path obeys `--config` 2019-01-30 13:45:26 +00:00
manager_unix.go Add support for running a CLI plugin 2019-01-30 13:44:04 +00:00
manager_windows.go Add support for running a CLI plugin 2019-01-30 13:44:04 +00:00
metadata.go Documentation on writing a plugin 2019-01-30 13:45:26 +00:00
plugin.go Refactor code which deals with Windows' `.exe` suffix 2019-01-30 13:45:26 +00:00
suffix_unix.go Refactor code which deals with Windows' `.exe` suffix 2019-01-30 13:45:26 +00:00
suffix_windows.go Check for `.exe` case insensitively 2019-01-30 13:45:26 +00:00