(ctx context.Context, dockerCli command.Cli, services []string, po ...cli.ProjectOptionsFn)
| 289 | } |
| 290 | |
| 291 | func (o *ProjectOptions) ToModel(ctx context.Context, dockerCli command.Cli, services []string, po ...cli.ProjectOptionsFn) (map[string]any, error) { |
| 292 | remotes := o.remoteLoaders(dockerCli) |
| 293 | for _, r := range remotes { |
| 294 | po = append(po, cli.WithResourceLoader(r)) |
| 295 | } |
| 296 | |
| 297 | options, err := o.toProjectOptions(po...) |
| 298 | if err != nil { |
| 299 | return nil, err |
| 300 | } |
| 301 | |
| 302 | if o.Compatibility || utils.StringToBool(options.Environment[ComposeCompatibility]) { |
| 303 | api.Separator = "_" |
| 304 | } |
| 305 | |
| 306 | return options.LoadModel(ctx) |
| 307 | } |
| 308 | |
| 309 | // ToProject loads a Compose project using the LoadProject API. |
| 310 | // Accepts optional cli.ProjectOptionsFn to control loader behavior. |
nothing calls this directly
no test coverage detected