(p *ProjectOptions, dockerCli command.Cli, backendOptions *BackendOptions)
| 62 | } |
| 63 | |
| 64 | func unpauseCommand(p *ProjectOptions, dockerCli command.Cli, backendOptions *BackendOptions) *cobra.Command { |
| 65 | opts := unpauseOptions{ |
| 66 | ProjectOptions: p, |
| 67 | } |
| 68 | cmd := &cobra.Command{ |
| 69 | Use: "unpause [SERVICE...]", |
| 70 | Short: "Unpause services", |
| 71 | RunE: Adapt(func(ctx context.Context, args []string) error { |
| 72 | return runUnPause(ctx, dockerCli, backendOptions, opts, args) |
| 73 | }), |
| 74 | ValidArgsFunction: completeServiceNames(dockerCli, p), |
| 75 | } |
| 76 | return cmd |
| 77 | } |
| 78 | |
| 79 | func runUnPause(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts unpauseOptions, services []string) error { |
| 80 | project, name, err := opts.projectOrName(ctx, dockerCli, services...) |
no test coverage detected