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

Method openDDComposeUI

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

Source from the content-addressed store, hash-verified

222}
223
224func (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
242func (lk *LogKeyboard) openDDLogsView(ctx context.Context, project *types.Project) {
243 if !lk.IsLogsViewEnabled {

Callers 1

HandleKeyEventsMethod · 0.95

Calls 2

keyboardErrorMethod · 0.95
EventWrapFuncForErrGroupFunction · 0.92

Tested by

no test coverage detected