Skip to content
/ dex Public

⚙️ simple tool to run a command in multiple directories

Notifications You must be signed in to change notification settings

mxvsh/dex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

⚙️ simple tool to run a command in multiple directories

Topics

Resources

Stars

Watchers

Forks

Languages