(ctx context.Context, dockerCli command.Cli, name string, opts client.PluginEnableOptions)
| 35 | } |
| 36 | |
| 37 | func 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 | } |
no test coverage detected
searching dependent graphs…