(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts stopOptions, services []string)
| 53 | } |
| 54 | |
| 55 | func runStop(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts stopOptions, services []string) error { |
| 56 | project, name, err := opts.projectOrName(ctx, dockerCli, services...) |
| 57 | if err != nil { |
| 58 | return err |
| 59 | } |
| 60 | return withBackend(dockerCli, backendOptions, func(backend api.Compose) error { |
| 61 | return backend.Stop(ctx, name, api.StopOptions{ |
| 62 | Timeout: optionalTimeout(opts.timeout, opts.timeChanged), |
| 63 | Services: services, |
| 64 | Project: project, |
| 65 | }) |
| 66 | }) |
| 67 | } |
no test coverage detected