DockerCLI/e2e/cli-plugins/testdata
Ian Campbell e5e578abc7 Allow plugins to make use of the cobra `PersistentPreRun` hooks.
Previously a plugin which used these hooks would overwrite the top-level plugin
command's use of this hook, resulting in the dockerCli object not being fully
initialised.

Provide a function which plugins can use to chain to the required behaviour.
This required some fairly ugly arrangements to preserve state (which was
previously in-scope in `newPluginCOmmand`) to be used by the new function.

Signed-off-by: Ian Campbell <ijc@docker.com>
2019-01-30 13:45:26 +00:00
..
docker-badmeta-err.golden Add some simple e2e tests for executing CLI plugins 2019-01-30 13:44:05 +00:00
docker-help-badmeta-err.golden Integrate CLI plugins with `docker help «foo»` 2019-01-30 13:45:18 +00:00
docker-help-helloworld-goodbye.golden Integrate CLI plugins with `docker help «foo»` 2019-01-30 13:45:18 +00:00
docker-help-helloworld.golden Allow plugins to make use of the cobra `PersistentPreRun` hooks. 2019-01-30 13:45:26 +00:00
docker-help-nonexistent-err.golden Integrate CLI plugins with `docker help «foo»` 2019-01-30 13:45:18 +00:00
docker-nonexistent-err.golden Add some simple e2e tests for executing CLI plugins 2019-01-30 13:44:05 +00:00