DockerCLI/cmd/docker
Sebastiaan van Stijn 670f81803f
cmd/docker: add tests for flag-completions, and refactor
Remove the registerCompletionFuncForGlobalFlags for now, as
the error it returned was ignored, so it didn't add much
benefit, other than abstracting things.

Split the underlying completion-functions to separate
functions, and add some basic tests for them.

Remove the completions helper, as it now didn't add much,
and it saved having the dependency on the package.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-10-18 11:23:55 +02:00
..
internal/signals cli-plugins: terminate plugin when CLI exits 2023-12-12 13:54:30 +00:00
winresources Use goversioninfo to create Windows Version Info 2021-10-11 16:54:22 +02:00
aliases.go build: set default context builder if not specified 2022-11-04 08:42:34 +01:00
builder.go build: allow BuildKit to be used on Windows daemons that advertise it 2024-06-20 02:49:22 +02:00
builder_test.go Update go:build comments to go1.21 2024-06-18 12:17:13 +02:00
builder_windows_test.go build: set default context builder if not specified 2022-11-04 08:42:34 +01:00
completions.go cmd/docker: add tests for flag-completions, and refactor 2024-10-18 11:23:55 +02:00
completions_test.go cmd/docker: add tests for flag-completions, and refactor 2024-10-18 11:23:55 +02:00
docker.go cmd/docker: add tests for flag-completions, and refactor 2024-10-18 11:23:55 +02:00
docker_test.go cli: improve argument validation output 2024-07-05 03:35:14 +02:00
docker_windows_386.go remove pre-go1.17 build-tags 2023-05-05 18:23:03 +02:00
docker_windows_amd64.go remove pre-go1.17 build-tags 2023-05-05 18:23:03 +02:00
docker_windows_arm.go remove pre-go1.17 build-tags 2023-05-05 18:23:03 +02:00
docker_windows_arm64.go remove pre-go1.17 build-tags 2023-05-05 18:23:03 +02:00