preparedDiagnosticsCollector(outputPath:)

Prepares a diagnostics collector.

DiagnosticsCollectorProvider.swift:22
func preparedDiagnosticsCollector(outputPath: URL?) -> (any DiagnosticCollector & Sendable, () throws -> Void)

Parameters

outputPath

A file path where to persist the YAML file. If nil, diagnostics will be printed to stderr.

Returns

A tuple containing:

  • An instance of DiagnosticCollector conforming to Sendable.

  • A closure to finalize the diagnostics collection