MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / anySourceTargetsPlatform

Function anySourceTargetsPlatform

cli/internal/platform/inject.go:362–369  ·  view source on GitHub ↗

anySourceTargetsPlatform reports whether any source opts into the platform destination by listing its reserved name in `destinations`.

(sources []*specs.Source)

Source from the content-addressed store, hash-verified

360// anySourceTargetsPlatform reports whether any source opts into the platform
361// destination by listing its reserved name in `destinations`.
362func anySourceTargetsPlatform(sources []*specs.Source) bool {
363 for _, s := range sources {
364 if slices.Contains(s.Destinations, destinationName) {
365 return true
366 }
367 }
368 return false
369}
370
371// hasPlatformDestination reports whether the spec already declares a `platform`
372// destination (a user-provided one the CLI must not overwrite).

Callers 1

MaybeInjectDestinationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected