Skip to content

Commit 4538ef1

Browse files
committed
CoreCommands: make some of the private API more public
This extends the visibility of some of the private implementation to the package level to allow use for testing without `@testable` imports.
1 parent 5747ee6 commit 4538ef1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/CoreCommands/SwiftCommandState.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public final class SwiftCommandState {
318318
}
319319

320320
// marked internal for testing
321-
init(
321+
package init(
322322
outputStream: OutputByteStream,
323323
options: GlobalOptions,
324324
toolWorkspaceConfiguration: ToolWorkspaceConfiguration,
@@ -452,7 +452,7 @@ public final class SwiftCommandState {
452452
}
453453
}
454454

455-
func waitForObservabilityEvents(timeout: DispatchTime) {
455+
package func waitForObservabilityEvents(timeout: DispatchTime) {
456456
self.observabilityHandler.wait(timeout: timeout)
457457
}
458458

@@ -814,7 +814,7 @@ public final class SwiftCommandState {
814814
return buildSystem
815815
}
816816

817-
static let entitlementsMacOSWarning = """
817+
package static let entitlementsMacOSWarning = """
818818
`--disable-get-task-allow-entitlement` and `--disable-get-task-allow-entitlement` only have an effect \
819819
when building on macOS.
820820
"""

0 commit comments

Comments
 (0)