altairsh

Crates.ioaltairsh
lib.rsaltairsh
version1.0.1
created_at2025-04-06 16:18:14.078112+00
updated_at2025-04-06 20:26:53.385963+00
descriptionA simple Rust script to run multiple commands at the same time.
homepage
repositoryhttps://github.com/dcdms/altair
max_upload_size
id1623049
size18,564
Davi Costa de Melo (dcdms)

documentation

README

altair

I'm currently dealing with a distributed system and it's such boring to have 8 terminal tabs running multiple microservices and other applications.

So I've created this minimal CLI called altair that allows us to run multiple commands in a single process with a configuration file.

Installation

Altair was deployed to crates.io, so make sure you have cargo installed on your system before continuing. Follow Cargo's installation guide if you need to.

First, install altair:

cargo install altairsh

Good! Let's say we have two Bun applications in the folders auth and catalog and we want to run them in the same process. You only need to write the following altair.yaml file...

commands:
  - name: 'auth.acme.com'
    run: 'bun run --cwd auth dev'

  - name: 'catalog.acme.com'
    run: 'bun run --cwd catalog dev'

Then run altair in the same working directory and see both applications running! You can terminate them via ctrl + c.

Commit count: 10

cargo fmt