Skip to content

Commit

Permalink
(chore): Ensure make help shows all commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ram-senth committed Sep 9, 2024
1 parent a6dce84 commit b5a36df
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit b5a36df

Please sign in to comment.