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

Function runEnable

cli/command/plugin/enable.go:37–43  ·  view source on GitHub ↗
(ctx context.Context, dockerCli command.Cli, name string, opts client.PluginEnableOptions)

Source from the content-addressed store, hash-verified

35}
36
37func runEnable(ctx context.Context, dockerCli command.Cli, name string, opts client.PluginEnableOptions) error {
38 if opts.Timeout < 0 {
39 return fmt.Errorf("negative timeout %d is invalid", opts.Timeout)
40 }
41 _, err := dockerCli.Client().PluginEnable(ctx, name, opts)
42 return err
43}

Callers 1

newEnableCommandFunction · 0.85

Calls 2

PluginEnableMethod · 0.80
ClientMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…