Crescendo
Crescendo copied to clipboard
Implement "trickle" parsing
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
}