MCPcopy Index your code
hub / github.com/docker/cli / runRemove

Function runRemove

cli/command/plugin/remove.go:41–53  ·  view source on GitHub ↗
(ctx context.Context, dockerCLI command.Cli, opts *rmOptions)

Source from the content-addressed store, hash-verified

39}
40
41func 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}

Callers 1

newRemoveCommandFunction · 0.70

Calls 3

PluginRemoveMethod · 0.80
ClientMethod · 0.65
OutMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…