DockerCLI/e2e/cli-plugins/testdata
Ian Campbell 935d47bbe9 Ignore unknown arguments on the top-level command.
This allows passing argument to plugins, otherwise they are caught by the parse
loop, since cobra does not know about each plugin at this stage (to avoid
having to always scan for all plugins) this means that e.g. `docker plugin
--foo` would accumulate `plugin` as an arg to the `docker` command, then choke
on the unknown `--foo`.

This allows unknown global args only, unknown arguments on subcommands (e.g.
`docker ps --foo`) are still correctly caught.

Add an e2e test covering this case.

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 Ignore unknown arguments on the top-level command. 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