Skip to content

aeldar/shrapnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shrapnel Build Status Linux Release Status Windows Release Status

A damned simple runner of multiple commands at once. Works on Windows and Linux.

What for?

It can be used to start multiple micro-front-end applications with a simple command.

How to use it?

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

How to install it?

Download the binary from the Releases section, unpack and place it somewhere in your PATH.

Why to not use it?

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.

What to improve?

  • 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 the shrapnel itself.
  • The shrapnel should be able to run the commands in a different directory than the current one.