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.
пре 11 месеци
source Allow multiple commands to be passed through. пре 11 месеци
.gitignore Initial commit! 🎉 пре 1 година
Cargo.lock Allow multiple commands to be passed through. пре 11 месеци
Cargo.toml Allow multiple commands to be passed through. пре 11 месеци
LICENSE-Apache Initial commit! 🎉 пре 1 година
LICENSE-MIT Initial commit! 🎉 пре 1 година
README.md First, relatively simple implementation. пре 1 година
rustfmt.toml Initial commit! 🎉 пре 1 година

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.