bonnie icon indicating copy to clipboard operation
bonnie copied to clipboard

Parallelism of commands

Open Isfirs opened this issue 2 years ago • 1 comments

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:

  • trunk serve --open
  • cargo tauri dev
  • tailwindcss -o ./tailwind.css --watch

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.

Isfirs avatar Oct 14 '22 09:10 Isfirs

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?

arctic-hen7 avatar Oct 14 '22 20:10 arctic-hen7