Execute a command in specified directories recursively.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Bauke aed16972cf
Allow multiple commands to be passed through.
pirms 6 mēnešiem
source Allow multiple commands to be passed through. pirms 6 mēnešiem
.gitignore Initial commit! 🎉 pirms 7 mēnešiem
Cargo.lock Allow multiple commands to be passed through. pirms 6 mēnešiem
Cargo.toml Allow multiple commands to be passed through. pirms 6 mēnešiem
LICENSE-Apache Initial commit! 🎉 pirms 7 mēnešiem
LICENSE-MIT Initial commit! 🎉 pirms 7 mēnešiem
README.md First, relatively simple implementation. pirms 7 mēnešiem
rustfmt.toml Initial commit! 🎉 pirms 7 mēnešiem

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.