schell / steeloverseer

A file watcher and development tool.
BSD 3-Clause "New" or "Revised" License
128 stars 14 forks source link

Parallel execution of commands #41

Open marcosh opened 4 years ago

marcosh commented 4 years ago

If I understand correctly, currently it is possible to execute commands just one after the other.

Would it be interesting/possible to configure certain commands to run in parallel?

For example, I could have four commands a, b, c and d and I would like to run a, then b and c in parallel and only after they both complete, run d

schell commented 4 years ago

That's an interesting proposition. I'm not sure what it would look like to issue a command like that - what do you suggest the semantics to be?

Also - I'm pretty tight on time these days so I probably will not be able to get to this in a timely manner, but I'll still be available for PR reviews and hackage administration.

marcosh commented 4 years ago

this might be something I'd be interested to work in, so I could try to set up a PR.

I imagine parallel commands could work in two ways:

I would probably opt for the second option, but maybe it could be configurable