(ctx context.Context, projectName string, options api.DownOptions)
| 36 | type downOp func() error |
| 37 | |
| 38 | func (s *composeService) Down(ctx context.Context, projectName string, options api.DownOptions) error { |
| 39 | return Run(ctx, func(ctx context.Context) error { |
| 40 | return s.down(ctx, strings.ToLower(projectName), options) |
| 41 | }, "down", s.events) |
| 42 | } |
| 43 | |
| 44 | func (s *composeService) down(ctx context.Context, projectName string, options api.DownOptions) error { //nolint:gocyclo |
| 45 | resourceToRemove := false |