Console output issue #1
-
First of all, this is awesome. Thanks! I'm trying to use this in an artisan command, and am having trouble updating a progress bar from each process. I've got a repo to show my issue: https://github.com/jasonvarga/fork-cli I've got two commands that do the same thing. One with fork, one without. Without Fork, the output is as expected. When using Fork, it kinda works, but you can see that the output gets a bit muddled. It may just not be possible, but it would great if it was. Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
I'm thinking the output is muddled because that bar is being updated in the child process. Directly update variables that belong to a parent process from a child process can lead to... unexpected behaviour. I'm currently toying around with some ideas to fix this, stay tuned... |
Beta Was this translation helpful? Give feedback.
I'm thinking the output is muddled because that bar is being updated in the child process. Directly update variables that belong to a parent process from a child process can lead to... unexpected behaviour.
I'm currently toying around with some ideas to fix this, stay tuned...