A damned simple runner of multiple commands at once. Works on Windows and Linux.
It can be used to start multiple micro-front-end applications with a simple command.
Add a damned simple shrapnel.yml
configuration to the directory you are going to run the commands in:
fragments:
- name: Description of the run process
dir: /path/to/dir/to/run/command/in # Optional
cmd: your-marvelous-command
- name: Description of another run process
dir: ../../relative/path/to/dir/to/run/another/command/in
cmd: ./your-marvelous-command-like-npm-start
... and run it:
shrapnel
Download the binary from the Releases section, unpack and place it somewhere in your PATH.
The shrapnel
runner is just an excercise in using rust for simple cli applications. It is not supposed to be a robust tool. Please use it for your own purposes.
- The
shrapnel
starts the processes in parallel and joins all the IO streams without any differentiation of them in the console. There should be a way to distinguish the streams and print them in the console with colors (or/and prefixed). - The
shrapnel
starts the processes, but cannot stop them. There should be a way to stop the processes on killing theshrapnel
itself. - The
shrapnel
should be able to run the commands in a different directory than the current one.