You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be useful for common repetitive tasks that can happen in parallel. For example, let's say I want to download some docker image on a few different servers. I could do:
As for which flag should activate it, I'm on the fence between reusing --passthrough-arguments/-P with a matrix value, or adding a separate --matrix, even if as a shortcut. Thoughts?
Tagged it as pull requests welcome, if anyone is keen on implementing this!
I think --passthrough-arguments might work differently ; that will always still only run the number of commands specified, but change their arguments. --matrix will always change (multiply) the commands specified.
--passthrough-arguments is kind of like an append to each of the existing commands, whereas --matrix is like multiplying the commands.
I think :P If I'm understanding that feature correctly.
Ok having implemented it now I think I see what you mean :P There is something between the two features, but I'm not quite finding the way to DRY them up. I think they might be different enough to warrant different names -- and passthrough only allows one list as input, whereas matrix can take multiple lists, which I'm having trouble finding a way to reconcile.
It would be useful to be able to generate the commands dynamically based on an environment variable. For example:
Which would be equivalent to typing:
Or with multiple values you could do:
Which would be equivalent to writing:
This would be useful for common repetitive tasks that can happen in parallel. For example, let's say I want to download some docker image on a few different servers. I could do:
This would help making
concurrently
a drop-in replacement for bash for-loops; the above would replaceIt would also make
concurrently
a drop-in for a lot of gnuparallel
usages, eg:Another example: processing a lot files in parallel, eg less compiling a number of files:
The text was updated successfully, but these errors were encountered: