🍺 Run
Run is a command-line tool designed to execute a specified command in all
directories that match a certain pattern within a given root directory. It
provides flexibility and efficiency in running commands across multiple
directories with customizable patterns.
Benchmark
Installation
Usage
This command will fetch from upstream for all the .git repositories inside
the current directory. Basically, it replaces the following command:
To specify a --File argument or -F, if you would like to search for a file
instead of a directory, use:
Additionally, you can provide a --Root argument or -R to set the current
working directory to a different folder. The default is ..
Specify a --Parallel argument or -P if you would like to run commands in
parallel. The default is sequential.
Dependencies
The code imports several crates:
clap- For parsing command-line arguments.tokio- Enables parallel execution of tasks.walkdir- Facilitates filesystem traversal.
Changelog
See CHANGELOG.md for a history of changes to this CLI.