Change the --wait option to wait for the command#127
Change the --wait option to wait for the command#127jbunton-atlassian wants to merge 1 commit intomikeal:masterfrom
Conversation
|
This seems like a useful feature, but, I don't think we should make it a breaking change to the current In the end, the design is up to @mikeal on this one. |
|
Sure, I'd be happy to rework it as an alternative option. I just thought I'd put it up here first in its simplest form to see if you were interested :) |
|
Hi @mikeal, would you be interested in this feature? Either as-is or as a separate option? I'm also curious what was the intention behind the existing Thanks :) |
|
@jbunton-atlassian does this work with child processes? Example: cli.js ... script.sh script.sh Would this code wait for tree to finish before executing it again? I implemented something similar by checking for child processes in #128 |
|
@hbt, no, it only waits for the parent process in that case. In your example you should be able to change I had a quick look at your code and noticed that it discards modification events while waiting rather than queueing them. I use |
|
Hi @mikeal, any thoughts on this feature? |
9386090 to
5de0fc9
Compare
This changes the meaning of the
--waitoption.I find this alternate behaviour much more useful. I don't ever want to have two copies of my tests running at the same time. I suspect that for most/all people using this tool with
--wait Xthis will be a compatible replacement.If you're interested but want to keep backwards compatibility I'd be happy to write the extra code behind a new option flag.
Thanks for looking :)