MCPcopy
hub / github.com/docker/compose / openDockerDesktop

Method openDockerDesktop

cmd/formatter/shortcut.go:206–222  ·  view source on GitHub ↗
(ctx context.Context, project *types.Project)

Source from the content-addressed store, hash-verified

204}
205
206func (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
224func (lk *LogKeyboard) openDDComposeUI(ctx context.Context, project *types.Project) {
225 if !lk.IsDockerDesktopActive {

Callers 1

HandleKeyEventsMethod · 0.95

Calls 2

keyboardErrorMethod · 0.95
EventWrapFuncForErrGroupFunction · 0.92

Tested by

no test coverage detected