@@ -106,7 +106,7 @@ extension Subprocess {
106106 }
107107 }
108108
109- internal func tryTerminate( ) -> Error ? {
109+ func tryTerminate( ) -> Error ? {
110110 do {
111111 try self . send ( . kill, toProcessGroup: true )
112112 } catch {
@@ -124,9 +124,9 @@ extension Subprocess {
124124
125125// MARK: - Environment Resolution
126126extension Subprocess . Environment {
127- internal static let pathEnvironmentVariableName = " PATH "
127+ static let pathEnvironmentVariableName = " PATH "
128128
129- internal func pathValue( ) -> String ? {
129+ func pathValue( ) -> String ? {
130130 switch self . config {
131131 case . inherit( let overrides) :
132132 // If PATH value exists in overrides, use it
@@ -145,7 +145,7 @@ extension Subprocess.Environment {
145145
146146 // This method follows the standard "create" rule: `env` needs to be
147147 // manually deallocated
148- internal func createEnv( ) -> [ UnsafeMutablePointer < CChar > ? ] {
148+ func createEnv( ) -> [ UnsafeMutablePointer < CChar > ? ] {
149149 func createFullCString(
150150 fromKey keyContainer: Subprocess . StringOrRawBytes ,
151151 value valueContainer: Subprocess . StringOrRawBytes
@@ -212,7 +212,7 @@ extension Subprocess.Environment {
212212extension Subprocess . Arguments {
213213 // This method follows the standard "create" rule: `args` needs to be
214214 // manually deallocated
215- internal func createArgs( withExecutablePath executablePath: String ) -> [ UnsafeMutablePointer < CChar > ? ] {
215+ func createArgs( withExecutablePath executablePath: String ) -> [ UnsafeMutablePointer < CChar > ? ] {
216216 var argv : [ UnsafeMutablePointer < CChar > ? ] = self . storage. map { $0. createRawBytes ( ) }
217217 // argv[0] = executable path
218218 if let override = self . executablePathOverride {
@@ -246,7 +246,7 @@ extension Subprocess.ProcessIdentifier : CustomStringConvertible, CustomDebugStr
246246
247247// MARK: - Executable Searching
248248extension Subprocess . Executable {
249- internal static var defaultSearchPaths : Set < String > {
249+ static var defaultSearchPaths : Set < String > {
250250 return Set ( [
251251 " /usr/bin " ,
252252 " /bin " ,
@@ -256,7 +256,7 @@ extension Subprocess.Executable {
256256 ] )
257257 }
258258
259- internal func resolveExecutablePath( withPathValue pathValue: String ? ) -> String ? {
259+ func resolveExecutablePath( withPathValue pathValue: String ? ) -> String ? {
260260 switch self . storage {
261261 case . executable( let executableName) :
262262 // If the executableName in is already a full path, return it directly
@@ -289,7 +289,7 @@ extension Subprocess.Executable {
289289
290290// MARK: - Configuration
291291extension Subprocess . Configuration {
292- internal func preSpawn( ) throws -> (
292+ func preSpawn( ) throws -> (
293293 executablePath: String ,
294294 env: [ UnsafeMutablePointer < CChar > ? ] ,
295295 argv: [ UnsafeMutablePointer < CChar > ? ] ,
@@ -343,7 +343,7 @@ extension Subprocess.Configuration {
343343 )
344344 }
345345
346- internal static func pathAccessible( _ path: String , mode: Int32 ) -> Bool {
346+ static func pathAccessible( _ path: String , mode: Int32 ) -> Bool {
347347 return path. withCString {
348348 return access ( $0, mode) == 0
349349 }
@@ -352,18 +352,18 @@ extension Subprocess.Configuration {
352352
353353// MARK: - FileDescriptor extensions
354354extension FileDescriptor {
355- internal static func openDevNull(
355+ static func openDevNull(
356356 withAcessMode mode: FileDescriptor . AccessMode
357357 ) throws -> FileDescriptor {
358358 let devnull : FileDescriptor = try . open( " /dev/null " , mode)
359359 return devnull
360360 }
361361
362- internal var platformDescriptor : Subprocess . PlatformFileDescriptor {
362+ var platformDescriptor : Subprocess . PlatformFileDescriptor {
363363 return self
364364 }
365365
366- internal func readChunk( upToLength maxLength: Int ) async throws -> Data ? {
366+ func readChunk( upToLength maxLength: Int ) async throws -> Data ? {
367367 return try await withCheckedThrowingContinuation { continuation in
368368 DispatchIO . read (
369369 fromFileDescriptor: self . rawValue,
@@ -383,7 +383,7 @@ extension FileDescriptor {
383383 }
384384 }
385385
386- internal func readUntilEOF( upToLength maxLength: Int ) async throws -> Data {
386+ func readUntilEOF( upToLength maxLength: Int ) async throws -> Data {
387387 return try await withCheckedThrowingContinuation { continuation in
388388 let dispatchIO = DispatchIO (
389389 type: . stream,
@@ -415,7 +415,7 @@ extension FileDescriptor {
415415 }
416416 }
417417
418- internal func write< S: Sequence > ( _ data: S ) async throws where S. Element == UInt8 {
418+ func write< S: Sequence > ( _ data: S ) async throws where S. Element == UInt8 {
419419 try await withCheckedThrowingContinuation { ( continuation: CheckedContinuation < Void , Error > ) -> Void in
420420 let dispatchData : DispatchData = Array ( data) . withUnsafeBytes {
421421 return DispatchData ( bytes: $0)
@@ -439,13 +439,13 @@ extension FileDescriptor {
439439}
440440
441441extension Subprocess {
442- internal typealias PlatformFileDescriptor = FileDescriptor
442+ typealias PlatformFileDescriptor = FileDescriptor
443443}
444444
445445// MARK: - Read Buffer Size
446446extension Subprocess {
447447 @inline ( __always)
448- internal static var readBufferSize : Int {
448+ static var readBufferSize : Int {
449449#if canImport(Darwin)
450450 return 16384
451451#else
0 commit comments