Skip to content

Commit

Permalink
feat: Clone all projects of a username at once in Github
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Mar 17, 2024
1 parent 0883d77 commit a20d9c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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

0 comments on commit a20d9c0

Please sign in to comment.