Adds Makefile

This commit is contained in:
ludeeus
2020-06-30 20:02:48 +02:00
parent 17556b0b72
commit ae2a34f44c
3 changed files with 31 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
.DEFAULT_GOAL := help
help: ## Shows help message.
@printf "\033[1m%s\033[36m %s\033[32m %s\033[0m \n\n" "Development environment for" "HACS" "Default";
@awk 'BEGIN {FS = ":.*##";} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m make %-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST);
@echo
add: ## Add a new repository to the default HACS list
@echo script/add;
remove: ## Remove a repository to the default HACS list
@bash script/remove;
update: ## Pull master from hacs/default
@ git pull upstream master;
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "Not implemented"
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
read -p 'Repository: ' repository
read -p 'Reason: ' reason
read -p 'Removal type: ' removal_type
read -p 'Link to more information: ' link
echo $repository
echo $reason
echo $removal_type
echo $link
python scripts/remove_repo.py "$repository" "$removal_type" "$reason" "$link" || exit 0