From a20d9c0436dc0dde4ae7d68ebb172b8f1b53248d Mon Sep 17 00:00:00 2001 From: Yasmin Teles Date: Sun, 17 Mar 2024 15:36:46 -0300 Subject: [PATCH] feat: Clone all projects of a username at once in Github --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 594838c..e4a30f9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help check_clean del ssh zsh backup check-scripts +.PHONY: help check_clean del ssh zsh backup github check-scripts help: ## Show help. @printf "A set of environment management commands.\n" @@ -31,6 +31,12 @@ backup: ## Back up your applications list. @echo "Backing up your applications list..." @brew bundle dump --file=./brew/Brewfile --force +github: ## Clone all projects of a username at once in Github. + @echo "Please enter some information" + @read -r -p "What is the organization or user name? " owner; \ + cd ~/Projects && gh repo list $$owner --limit 4000 --no-archived | while read -r repository _; do gh repo clone $$repository ; done + @echo "Check the Projects folder to view all cloned projects." + check-scripts: ## Check the shell script. @echo "Checking the shell script..." @shellcheck *.sh