(options api.DownOptions, project *types.Project)
| 125 | } |
| 126 | |
| 127 | func checkSelectedServices(options api.DownOptions, project *types.Project) ([]string, error) { |
| 128 | var services []string |
| 129 | for _, service := range options.Services { |
| 130 | _, err := project.GetService(service) |
| 131 | if err != nil { |
| 132 | if options.Project != nil { |
| 133 | // ran with an explicit compose.yaml file, so we should not ignore |
| 134 | return nil, err |
| 135 | } |
| 136 | // ran without an explicit compose.yaml file, so can't distinguish typo vs container already removed |
| 137 | } else { |
| 138 | services = append(services, service) |
| 139 | } |
| 140 | } |
| 141 | return services, nil |
| 142 | } |
| 143 | |
| 144 | func (s *composeService) ensureVolumesDown(ctx context.Context, project *types.Project) []downOp { |
| 145 | var ops []downOp |
no outgoing calls
no test coverage detected
searching dependent graphs…