@@ -152,7 +152,6 @@ public func run<
152
152
/// - platformOptions: The platform specific options to use
153
153
/// when running the executable.
154
154
/// - input: The input to send to the executable.
155
- /// - output: How to manage the executable standard ouput.
156
155
/// - error: How to manager executable standard error.
157
156
/// - isolation: the isolation context to run the body closure.
158
157
/// - body: The custom execution body to manually control the running process
@@ -205,6 +204,21 @@ public func run<Result, Input: InputProtocol, Error: OutputProtocol>(
205
204
}
206
205
}
207
206
207
+ /// Run a executable with given parameters and a custom closure
208
+ /// to manage the running subprocess' lifetime and stream its standard error.
209
+ /// - Parameters:
210
+ /// - executable: The executable to run.
211
+ /// - arguments: The arguments to pass to the executable.
212
+ /// - environment: The environment in which to run the executable.
213
+ /// - workingDirectory: The working directory in which to run the executable.
214
+ /// - platformOptions: The platform specific options to use
215
+ /// when running the executable.
216
+ /// - input: The input to send to the executable.
217
+ /// - output: How to manager executable standard output.
218
+ /// - isolation: the isolation context to run the body closure.
219
+ /// - body: The custom execution body to manually control the running process
220
+ /// - Returns a ExecutableResult type containing the return value
221
+ /// of the closure.
208
222
public func run< Result, Input: InputProtocol , Output: OutputProtocol > (
209
223
_ executable: Executable ,
210
224
arguments: Arguments = [ ] ,
@@ -252,6 +266,21 @@ public func run<Result, Input: InputProtocol, Output: OutputProtocol>(
252
266
}
253
267
}
254
268
269
+ /// Run a executable with given parameters and a custom closure
270
+ /// to manage the running subprocess' lifetime, write to its
271
+ /// standard input, and stream its standard output.
272
+ /// - Parameters:
273
+ /// - executable: The executable to run.
274
+ /// - arguments: The arguments to pass to the executable.
275
+ /// - environment: The environment in which to run the executable.
276
+ /// - workingDirectory: The working directory in which to run the executable.
277
+ /// - platformOptions: The platform specific options to use
278
+ /// when running the executable.
279
+ /// - error: How to manager executable standard error.
280
+ /// - isolation: the isolation context to run the body closure.
281
+ /// - body: The custom execution body to manually control the running process
282
+ /// - Returns a ExecutableResult type containing the return value
283
+ /// of the closure.
255
284
public func run< Result, Error: OutputProtocol > (
256
285
_ executable: Executable ,
257
286
arguments: Arguments = [ ] ,
@@ -282,6 +311,21 @@ public func run<Result, Error: OutputProtocol>(
282
311
}
283
312
}
284
313
314
+ /// Run a executable with given parameters and a custom closure
315
+ /// to manage the running subprocess' lifetime, write to its
316
+ /// standard input, and stream its standard error.
317
+ /// - Parameters:
318
+ /// - executable: The executable to run.
319
+ /// - arguments: The arguments to pass to the executable.
320
+ /// - environment: The environment in which to run the executable.
321
+ /// - workingDirectory: The working directory in which to run the executable.
322
+ /// - platformOptions: The platform specific options to use
323
+ /// when running the executable.
324
+ /// - output: How to manager executable standard output.
325
+ /// - isolation: the isolation context to run the body closure.
326
+ /// - body: The custom execution body to manually control the running process
327
+ /// - Returns a ExecutableResult type containing the return value
328
+ /// of the closure.
285
329
public func run< Result, Output: OutputProtocol > (
286
330
_ executable: Executable ,
287
331
arguments: Arguments = [ ] ,
@@ -313,17 +357,15 @@ public func run<Result, Output: OutputProtocol>(
313
357
}
314
358
315
359
/// Run a executable with given parameters and a custom closure
316
- /// to manage the running subprocess' lifetime and write to its
317
- /// standard input via `StandardInputWriter`
360
+ /// to manage the running subprocess' lifetime, write to its
361
+ /// standard input, and stream its standard output and standard error.
318
362
/// - Parameters:
319
363
/// - executable: The executable to run.
320
364
/// - arguments: The arguments to pass to the executable.
321
365
/// - environment: The environment in which to run the executable.
322
366
/// - workingDirectory: The working directory in which to run the executable.
323
367
/// - platformOptions: The platform specific options to use
324
368
/// when running the executable.
325
- /// - output:How to handle executable's standard output
326
- /// - error: How to handle executable's standard error
327
369
/// - isolation: the isolation context to run the body closure.
328
370
/// - body: The custom execution body to manually control the running process
329
371
/// - Returns a ExecutableResult type containing the return value
@@ -464,11 +506,10 @@ public func run<
464
506
/// Run a executable with given parameters specified by a `Configuration`
465
507
/// - Parameters:
466
508
/// - configuration: The `Subprocess` configuration to run.
467
- /// - output: The method to use for redirecting the standard output.
468
- /// - error: The method to use for redirecting the standard error.
469
509
/// - isolation: the isolation context to run the body closure.
470
510
/// - body: The custom configuration body to manually control
471
- /// the running process and write to its standard input.
511
+ /// the running process, write to its standard input, stream
512
+ /// its standard output and standard error.
472
513
/// - Returns a ExecutableResult type containing the return value
473
514
/// of the closure.
474
515
public func run< Result> (
0 commit comments