Execute a command in specified directories recursively.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Bauke aed16972cf
Allow multiple commands to be passed through.
il y a 6 mois
source Allow multiple commands to be passed through. il y a 6 mois
.gitignore Initial commit! 🎉 il y a 7 mois
Cargo.lock Allow multiple commands to be passed through. il y a 6 mois
Cargo.toml Allow multiple commands to be passed through. il y a 6 mois
LICENSE-Apache Initial commit! 🎉 il y a 7 mois
LICENSE-MIT Initial commit! 🎉 il y a 7 mois
README.md First, relatively simple implementation. il y a 7 mois
rustfmt.toml Initial commit! 🎉 il y a 7 mois

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.