(ctx context.Context, dockerCli command.Cli, opts configOptions)
| 414 | } |
| 415 | |
| 416 | func runModels(ctx context.Context, dockerCli command.Cli, opts configOptions) error { |
| 417 | backend, err := compose.NewComposeService(dockerCli) |
| 418 | if err != nil { |
| 419 | return err |
| 420 | } |
| 421 | |
| 422 | project, _, err := opts.ProjectOptions.ToProject(ctx, dockerCli, backend, nil, cli.WithoutEnvironmentResolution) |
| 423 | if err != nil { |
| 424 | return err |
| 425 | } |
| 426 | for _, model := range project.Models { |
| 427 | if model.Model != "" { |
| 428 | _, _ = fmt.Fprintln(dockerCli.Out(), model.Model) |
| 429 | } |
| 430 | } |
| 431 | return nil |
| 432 | } |
| 433 | |
| 434 | func runHash(ctx context.Context, dockerCli command.Cli, opts configOptions) error { |
| 435 | var services []string |
no test coverage detected