(ctx context.Context, project *types.Project)
| 204 | } |
| 205 | |
| 206 | func (lk *LogKeyboard) openDockerDesktop(ctx context.Context, project *types.Project) { |
| 207 | if !lk.IsDockerDesktopActive { |
| 208 | return |
| 209 | } |
| 210 | go func() { |
| 211 | _ = tracing.EventWrapFuncForErrGroup(ctx, "menu/gui", tracing.SpanOptions{}, |
| 212 | func(ctx context.Context) error { |
| 213 | link := fmt.Sprintf("docker-desktop://dashboard/apps/%s", project.Name) |
| 214 | err := open.Run(link) |
| 215 | if err != nil { |
| 216 | err = fmt.Errorf("could not open Docker Desktop") |
| 217 | lk.keyboardError("View", err) |
| 218 | } |
| 219 | return err |
| 220 | })() |
| 221 | }() |
| 222 | } |
| 223 | |
| 224 | func (lk *LogKeyboard) openDDComposeUI(ctx context.Context, project *types.Project) { |
| 225 | if !lk.IsDockerDesktopActive { |
no test coverage detected