Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(chore): Ensure make help shows all commands #1145

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ default: help
help:
@echo
@echo make
@grep -E '^[a-zA-Z0-9 -]+:.*#' $(makefile) | sort | while read -r l; do printf " \033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done
@grep -E '^[a-zA-Z0-9 _ -]+:.*#' $(makefile) | sort | while read -r l; do printf " \033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done

.PHONY: pip
pip: # Runs pip install with the requirements.txt file
Expand All @@ -24,12 +24,12 @@ update: .env # Updates the project's docker compose image.
docker compose run app flask db history
docker compose run app flask db upgrade

.PHONY: db_downgrade
db_downgrade: .env # Downgrades the db by one upgrade script each time it is run.
.PHONY: db-downgrade
db-downgrade: .env # Downgrades the db by one upgrade script each time it is run.
docker compose run app flask db downgrade

.PHONY: db_reset
db_reset: .env
.PHONY: db-reset
db-reset: .env # Reinitializes the database. You need to run make update to apply all migrations after a reset.
docker compose down --volumes

.PHONY: dev
Expand Down
Loading