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.
- Run the same command across multiple directories
- Parallel execution using threads
- Progress indicators for each directory
- Execution time tracking
curl -LsSf https://dex.monawwar.io/install.sh | bash
dex --command "npm install" --dirs "project1,project2,project3"
OR
dex -c "npm install" -d "project1,project2,project3"
-c, --command
: The command to execute in each directory-d, --dirs
: Comma-separated list of directories
# 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"
- Clone the repository
- Build the project:
cargo build
- Run tests:
cargo test
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License