Inn is a shell script to execute commmands in multiple directories.
sh
cargo install innkeeper
sh
inn .git git fetch upstream
This will fetch from upstream for all the .git repositories inside the current directory. Basically it replaces:
sh
find -iname .git -type d -execdir git fetch upstream \;
You can also provide a --root
argument or -r
which sets the current working
directory to a different folder.
sh
inn -r D:\Developer .git git fetch upstream
Specify a --parallel
argument or -p
if you would like to run functions in
parallel.
sh
inn -p -r D:\Developer .git git fetch upstream
See CHANGELOG.md for a history of changes to this CLI.