(ctx context.Context, dockerCli command.Cli, opts configOptions)
| 398 | } |
| 399 | |
| 400 | func runNetworks(ctx context.Context, dockerCli command.Cli, opts configOptions) error { |
| 401 | backend, err := compose.NewComposeService(dockerCli) |
| 402 | if err != nil { |
| 403 | return err |
| 404 | } |
| 405 | |
| 406 | project, _, err := opts.ProjectOptions.ToProject(ctx, dockerCli, backend, nil, cli.WithoutEnvironmentResolution) |
| 407 | if err != nil { |
| 408 | return err |
| 409 | } |
| 410 | for n := range project.Networks { |
| 411 | _, _ = fmt.Fprintln(dockerCli.Out(), n) |
| 412 | } |
| 413 | return nil |
| 414 | } |
| 415 | |
| 416 | func runModels(ctx context.Context, dockerCli command.Cli, opts configOptions) error { |
| 417 | backend, err := compose.NewComposeService(dockerCli) |
no test coverage detected