(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts pauseOptions, services []string)
| 45 | } |
| 46 | |
| 47 | func runPause(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts pauseOptions, services []string) error { |
| 48 | project, name, err := opts.projectOrName(ctx, dockerCli, services...) |
| 49 | if err != nil { |
| 50 | return err |
| 51 | } |
| 52 | return withBackend(dockerCli, backendOptions, func(backend api.Compose) error { |
| 53 | return backend.Pause(ctx, name, api.PauseOptions{ |
| 54 | Services: services, |
| 55 | Project: project, |
| 56 | }) |
| 57 | }) |
| 58 | } |
| 59 | |
| 60 | type unpauseOptions struct { |
| 61 | *ProjectOptions |
no test coverage detected