From 13affb18479108d42766c71303db5403be046c1a Mon Sep 17 00:00:00 2001 From: Yasmin Teles Date: Thu, 6 Jun 2024 17:33:03 -0300 Subject: [PATCH] feat: add topic filter in github command in Makefile --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8d24705..9df8d5b 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,8 @@ backup: ## Back up your applications list. 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 + read -r -p "What is the topic? " topic; \ + cd ~/Projects && gh repo list $$owner --limit 4000 --no-archived --topic $$topic | 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.