Execute a command in specified directories recursively.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bauke aed16972cf
Allow multiple commands to be passed through.
1 month ago
source Allow multiple commands to be passed through. 1 month ago
.gitignore Initial commit! 🎉 2 months ago
Cargo.lock Allow multiple commands to be passed through. 1 month ago
Cargo.toml Allow multiple commands to be passed through. 1 month ago
LICENSE-Apache Initial commit! 🎉 2 months ago
LICENSE-MIT Initial commit! 🎉 2 months ago
README.md First, relatively simple implementation. 2 months ago
rustfmt.toml Initial commit! 🎉 2 months ago

README.md

Recursive Execute

Execute a command in specified directories recursively.

Installation

Binary

Precompiled binaries are available here.

Source

git clone https://git.holllo.cc/Bauke/recursive-execute.git
cd recursive-execute
cargo build --release
mv target/release/recursive-execute ./

Usage

Make sure the file is executable, then run it with --help to see all available options.

chmod +x ./recursive-execute
./recursive-execute --help
Example output using pwd.
$ ./recursive-execute -d="source/" -d="target/" -c="pwd" --depth="1" --verbose

Outputs:

Executing "pwd" in "source/" (current depth 0), output:
/home/bauke/code/recursive-execute/source

Executing "pwd" in "target/" (current depth 0), output:
/home/bauke/code/recursive-execute/target

Executing "pwd" in "target/debug" (current depth 1), output:
/home/bauke/code/recursive-execute/target/debug

Executing "pwd" in "target/release" (current depth 1), output:
/home/bauke/code/recursive-execute/target/release

Executing "pwd" in "target/rls" (current depth 1), output:
/home/bauke/code/recursive-execute/target/rls

✓ Done!

License

Open-sourced with either the

at your option.