Crescendo icon indicating copy to clipboard operation
Crescendo copied to clipboard

Implement "trickle" parsing

Open DennisL68 opened this issue 1 year ago • 6 comments

Summary of the new feature / enhancement

As a user of a command that provides multiple outputs over time before finishing I'd like to be able to start parsing the output before the complete command has ended So that I can take action on certain statuses in the output

Proposed technical implementation details (optional)

I don't know how feasible this is though...

Start-Job {
  <command args>
} -Name <command arg>

while ($job.state -ne 'Completed') {
  $job = Get-Job -Name <command arg>
  $job | Receive-Job
  sleep -Milliseconds 400
}

DennisL68 avatar May 15 '23 16:05 DennisL68