(ctx context.Context, project *types.Project)
| 222 | } |
| 223 | |
| 224 | func (lk *LogKeyboard) openDDComposeUI(ctx context.Context, project *types.Project) { |
| 225 | if !lk.IsDockerDesktopActive { |
| 226 | return |
| 227 | } |
| 228 | go func() { |
| 229 | _ = tracing.EventWrapFuncForErrGroup(ctx, "menu/gui/composeview", tracing.SpanOptions{}, |
| 230 | func(ctx context.Context) error { |
| 231 | link := fmt.Sprintf("docker-desktop://dashboard/docker-compose/%s", project.Name) |
| 232 | err := open.Run(link) |
| 233 | if err != nil { |
| 234 | err = fmt.Errorf("could not open Docker Desktop Compose UI") |
| 235 | lk.keyboardError("View Config", err) |
| 236 | } |
| 237 | return err |
| 238 | })() |
| 239 | }() |
| 240 | } |
| 241 | |
| 242 | func (lk *LogKeyboard) openDDLogsView(ctx context.Context, project *types.Project) { |
| 243 | if !lk.IsLogsViewEnabled { |
no test coverage detected