(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts pullOptions, services []string)
| 99 | } |
| 100 | |
| 101 | func runPull(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts pullOptions, services []string) error { |
| 102 | backend, err := compose.NewComposeService(dockerCli, backendOptions.Options...) |
| 103 | if err != nil { |
| 104 | return err |
| 105 | } |
| 106 | |
| 107 | project, _, err := opts.ToProject(ctx, dockerCli, backend, services, cli.WithoutEnvironmentResolution) |
| 108 | if err != nil { |
| 109 | return err |
| 110 | } |
| 111 | |
| 112 | project, err = opts.apply(project, services) |
| 113 | if err != nil { |
| 114 | return err |
| 115 | } |
| 116 | |
| 117 | return backend.Pull(ctx, project, api.PullOptions{ |
| 118 | Quiet: opts.quiet, |
| 119 | IgnoreFailures: opts.ignorePullFailures, |
| 120 | IgnoreBuildable: opts.noBuildable, |
| 121 | }) |
| 122 | } |
no test coverage detected