Open jrnail23 opened 1 year ago
Like --max-processes
? 🙂
But does that allow you to run one single command concurrently?
No, I misunderstood your initial request.
So you're looking at a way to e.g. run echo "hello world"
N times?
@gustavohenke, yes, exactly
There's nothing like that in the CLI currently, though there's some special syntax that could be built on, e.g. concurrently "npm:*(!fix) -- {@}"
is valid.
So you could have for example concurrently "echo Hello world{1:5}"
or similar (I'm pretty sure some programming language has syntax like this, but I can't remember which 🤦).
Another option would be through the addition of a new flag, but I'm not sure how to make it ergonomic.
Finally, you can always do whatever you want programmatically:
import concurrently from 'concurrently';
concurrently(Array({ length: 5 }, (_, i) => `echo "Hello world${i}"`))
thoughts, @paescuj?
I'm looking for a way to easily run the same command in parallel, specifying the number of concurrent executions. Does concurrently support that?