(ctx context.Context, dockerCLI command.Cli, opts *rmOptions)
| 39 | } |
| 40 | |
| 41 | func runRemove(ctx context.Context, dockerCLI command.Cli, opts *rmOptions) error { |
| 42 | apiClient := dockerCLI.Client() |
| 43 | |
| 44 | var errs []error |
| 45 | for _, name := range opts.plugins { |
| 46 | if _, err := apiClient.PluginRemove(ctx, name, client.PluginRemoveOptions{Force: opts.force}); err != nil { |
| 47 | errs = append(errs, err) |
| 48 | continue |
| 49 | } |
| 50 | _, _ = fmt.Fprintln(dockerCLI.Out(), name) |
| 51 | } |
| 52 | return errors.Join(errs...) |
| 53 | } |
no test coverage detected
searching dependent graphs…