Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 1.3 KB

README.md

File metadata and controls

68 lines (44 loc) · 1.3 KB

dex

A simple CLI tool to run commands in multiple directories simultaneously. It is useful when you have multiple projects and you want to run the same command in each of them.

The tool is written completely in Rust and aims to be fast and efficient. It uses threads to run the commands in parallel and provides progress indicators for each directory.

Features

  • Run the same command across multiple directories
  • Parallel execution using threads
  • Progress indicators for each directory
  • Execution time tracking

Installation

curl -LsSf https://dex.monawwar.io/install.sh | bash

Usage

dex --command "npm install" --dirs "project1,project2,project3"

OR

dex -c "npm install" -d "project1,project2,project3"

Arguments

  • -c, --command: The command to execute in each directory
  • -d, --dirs: Comma-separated list of directories

Example

# Run git status in multiple repositories
dex -c "git status" -d "repo1,repo2,repo3"

# Run npm install in multiple projects
dex -c "npm install" -d "frontend,backend,common"

Development

  1. Clone the repository
  2. Build the project:
cargo build
  1. Run tests:
cargo test

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License