aboutsummaryrefslogtreecommitdiffstats
path: root/executables/bin/gh-clone-all
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2025-04-20 08:53:06 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2025-04-20 08:53:06 -0400
commit46104afebb5fa61a059652b1682ddf6b80e83d37 (patch)
tree1f16872989139c1d2a5af00c1db2694dbcb1285e /executables/bin/gh-clone-all
parentupdate configs (diff)
downloaddotfiles-46104afebb5fa61a059652b1682ddf6b80e83d37.zip
Update dotfiles
Diffstat (limited to 'executables/bin/gh-clone-all')
-rwxr-xr-xexecutables/bin/gh-clone-all11
1 files changed, 11 insertions, 0 deletions
diff --git a/executables/bin/gh-clone-all b/executables/bin/gh-clone-all
new file mode 100755
index 0000000..742189b
--- /dev/null
+++ b/executables/bin/gh-clone-all
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# Clone down all repositories from a GitHub entity.
+#
+# Args:
+# $1: The entity name to clone. i.e. github.com/eugenetriguba => eugenetriguba
+
+gh repo list "$1" --limit 10000 | while read -r repo _; do
+ gh repo clone "$repo" "$repo"
+done
+