|
@@ -44,12 +44,16 @@ namespace Terra.Arbitrator.Services
|
|
|
stdErrBuffer.AppendLine(line);
|
|
|
progress?.Report(line); // Report progress for each line received.
|
|
|
});
|
|
|
+
|
|
|
+ var stdOutPipe = PipeTarget.ToDelegate(line => {
|
|
|
+ stdOutBuffer.AppendLine(line);
|
|
|
+ });
|
|
|
|
|
|
var command = Cli.Wrap(execPath)
|
|
|
.WithArguments(args)
|
|
|
.WithWorkingDirectory(ProjectRoot)
|
|
|
.WithValidation(CommandResultValidation.None) // We handle validation manually
|
|
|
- | (PipeTarget.ToDelegate(x => stdOutBuffer.Append(x)), stdErrPipe);
|
|
|
+ | (stdOutPipe, stdErrPipe);
|
|
|
|
|
|
var result = await command.ExecuteAsync();
|
|
|
|