Execute a command in specified directories recursively.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
Bauke aed16972cf
Allow multiple commands to be passed through.
6 månader sedan
source Allow multiple commands to be passed through. 6 månader sedan
.gitignore Initial commit! 🎉 7 månader sedan
Cargo.lock Allow multiple commands to be passed through. 6 månader sedan
Cargo.toml Allow multiple commands to be passed through. 6 månader sedan
LICENSE-Apache Initial commit! 🎉 7 månader sedan
LICENSE-MIT Initial commit! 🎉 7 månader sedan
README.md First, relatively simple implementation. 7 månader sedan
rustfmt.toml Initial commit! 🎉 7 månader sedan

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.