(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts copyOptions)
| 75 | } |
| 76 | |
| 77 | func runCopy(ctx context.Context, dockerCli command.Cli, backendOptions *BackendOptions, opts copyOptions) error { |
| 78 | name, err := opts.toProjectName(ctx, dockerCli) |
| 79 | if err != nil { |
| 80 | return err |
| 81 | } |
| 82 | |
| 83 | backend, err := compose.NewComposeService(dockerCli, backendOptions.Options...) |
| 84 | if err != nil { |
| 85 | return err |
| 86 | } |
| 87 | return backend.Copy(ctx, name, api.CopyOptions{ |
| 88 | Source: opts.source, |
| 89 | Destination: opts.destination, |
| 90 | All: opts.all, |
| 91 | Index: opts.index, |
| 92 | FollowLink: opts.followLink, |
| 93 | CopyUIDGID: opts.copyUIDGID, |
| 94 | }) |
| 95 | } |
no test coverage detected