(ctx context.Context, dockerCli command.Cli, opts configOptions)
| 382 | } |
| 383 | |
| 384 | func runVolumes(ctx context.Context, dockerCli command.Cli, opts configOptions) error { |
| 385 | backend, err := compose.NewComposeService(dockerCli) |
| 386 | if err != nil { |
| 387 | return err |
| 388 | } |
| 389 | |
| 390 | project, _, err := opts.ProjectOptions.ToProject(ctx, dockerCli, backend, nil, cli.WithoutEnvironmentResolution) |
| 391 | if err != nil { |
| 392 | return err |
| 393 | } |
| 394 | for n := range project.Volumes { |
| 395 | _, _ = fmt.Fprintln(dockerCli.Out(), n) |
| 396 | } |
| 397 | return nil |
| 398 | } |
| 399 | |
| 400 | func runNetworks(ctx context.Context, dockerCli command.Cli, opts configOptions) error { |
| 401 | backend, err := compose.NewComposeService(dockerCli) |
no test coverage detected