DockerCLI/cli/command/plugin
Sebastiaan van Stijn d3bf82db86
cli/command/plugins: use errors.Join instead of custom cli.Errors
This command was using a custom "multi-error" implementation, but it
had some limitations, and the formatting wasn't great.

This patch replaces it with Go's errors.Join.

Before:

    docker plugin remove one two three
    Error response from daemon: plugin "one" not found, Error response from daemon: plugin "two" not found, Error response from daemon: plugin "three" not found

After:

    docker plugin remove one two three
    Error response from daemon: plugin "one" not found
    Error response from daemon: plugin "two" not found
    Error response from daemon: plugin "three" not found

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 71ebbb81ae)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-10-19 10:36:33 +02:00
..
testdata feat: standardize error for prompt 2024-03-26 14:11:55 +01:00
client_test.go fix: cli prompt termination exit code 2024-03-04 15:26:17 +01:00
cmd.go Update gometalinter 2017-10-26 12:21:02 -04:00
create.go Dockerfile: update mvdan/gofumpt to v0.6.0 2024-03-17 13:48:13 +01:00
create_test.go test spring-cleaning 2024-07-19 13:37:27 +02:00
disable.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
disable_test.go test spring-cleaning 2024-07-19 13:37:27 +02:00
enable.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
enable_test.go test spring-cleaning 2024-07-19 13:37:27 +02:00
formatter.go linting: address assorted issues found by gocritic 2023-11-20 16:02:16 +01:00
formatter_test.go Update go:build comments to go1.21 2024-06-18 12:17:13 +02:00
inspect.go Update go:build comments to go1.21 2024-06-18 12:17:13 +02:00
inspect_test.go test spring-cleaning 2024-07-19 13:37:27 +02:00
install.go Plumb context to API callbacks 2024-05-17 14:39:49 +02:00
install_test.go test spring-cleaning 2024-07-19 13:37:27 +02:00
list.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
list_test.go test spring-cleaning 2024-07-19 13:37:27 +02:00
push.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
remove.go cli/command/plugins: use errors.Join instead of custom cli.Errors 2024-10-19 10:36:33 +02:00
remove_test.go test spring-cleaning 2024-07-19 13:37:27 +02:00
set.go Plumb contexts through commands 2023-12-12 22:30:16 +01:00
upgrade.go chore: remove backticks and resolve linting issues 2024-04-02 15:54:29 +02:00
upgrade_test.go test spring-cleaning 2024-07-19 13:37:27 +02:00