localExtendsParent returns the path of an extends parent file that exists on disk, or "" when the service does not extend or extends a remote resource.
(service types.ServiceConfig)
| 571 | // localExtendsParent returns the path of an extends parent file that exists on |
| 572 | // disk, or "" when the service does not extend or extends a remote resource. |
| 573 | func localExtendsParent(service types.ServiceConfig) string { |
| 574 | if service.Extends == nil || service.Extends.File == "" { |
| 575 | return "" |
| 576 | } |
| 577 | if _, err := os.Stat(service.Extends.File); err != nil { |
| 578 | return "" |
| 579 | } |
| 580 | return service.Extends.File |
| 581 | } |
| 582 | |
| 583 | func buildEnvPromptMessage(services map[string]*serviceEnvFindings) string { |
| 584 | var b strings.Builder |
no outgoing calls
no test coverage detected