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

Method openDDLogsView

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

Source from the content-addressed store, hash-verified

240}
241
242func (lk *LogKeyboard) openDDLogsView(ctx context.Context, project *types.Project) {
243 if !lk.IsLogsViewEnabled {
244 return
245 }
246 go func() {
247 _ = tracing.EventWrapFuncForErrGroup(ctx, "menu/gui/logsview", tracing.SpanOptions{},
248 func(ctx context.Context) error {
249 link := desktop.BuildLogsURL(project.Name)
250 err := open.Run(link)
251 if err != nil {
252 err = fmt.Errorf("could not open Docker Desktop Logs view: %w", err)
253 lk.keyboardError("View Logs", err)
254 }
255 return err
256 })()
257 }()
258}
259
260func (lk *LogKeyboard) openDDWatchDocs(ctx context.Context, project *types.Project) {
261 go func() {

Callers 1

HandleKeyEventsMethod · 0.95

Calls 3

keyboardErrorMethod · 0.95
EventWrapFuncForErrGroupFunction · 0.92
BuildLogsURLFunction · 0.92

Tested by

no test coverage detected