arctic-hen7 / bonnie

Simple, cross-platform, and fast command aliases with superpowers.
MIT License
83 stars 6 forks source link

Parallelism of commands #28

Open Isfirs opened 2 years ago

Isfirs commented 2 years ago

Description NPM has a package called Concurrently. It provides a command that can run multiple commands parallel to each other.

Reasoning In a typical (real) web dev environment, there are multiple tools required to be run. Coming from my current project I have to run:

tauri can run trunk serve on its own from its devCommand, but that still requires a 2nd command to run the tailwind watch.

More tools may require more commands to be run in parallel.

Are you willing to work on an implementation of this? I can try, but I am not the strongest in rust. With some help/ direction on what to do I may be able to help on an implementation.

arctic-hen7 commented 2 years ago

This would be an excellent feature, I agree! The question really is the syntax I think. I could add a bonnie -m command that would run each string argument as a command, all in parallel, and then you could use that as a command inside a Bonnie configuration file, which would be an easy way out. Did you have any ideas for this?