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

Method isDesktopFeatureActive

pkg/compose/desktop.go:33–35  ·  pkg/compose/desktop.go::composeService.isDesktopFeatureActive

isDesktopFeatureActive checks whether a Docker Desktop feature flag is enabled. Returns false silently when Desktop is not running or unreachable.

(ctx context.Context, feature string)

Source from the content-addressed store, hash-verified

31// isDesktopFeatureActive checks whether a Docker Desktop feature flag is
32// enabled. Returns false silently when Desktop is not running or unreachable.
33func (s *composeService) isDesktopFeatureActive(ctx context.Context, feature string) bool {
34 return desktop.IsFeatureActive(ctx, s.apiClient(), feature)
35}

Callers 1

UpMethod · 0.95

Calls 2

apiClientMethod · 0.95
IsFeatureActiveFunction · 0.92

Tested by

no test coverage detected