Skip to content

Commit

Permalink
feat: add printenvcfg rule
Browse files Browse the repository at this point in the history
This new rule will help to know the configuration environment variables that are
exported for the commands executed by the makefile.

Signed-off-by: Alejandro Visiedo <[email protected]>
  • Loading branch information
avisiedo committed Sep 21, 2023
1 parent 5968fd0 commit 68e7521
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/mk/printvars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
.PHONY: printvars
printvars: ## Print variable name and values
@true $(foreach V, $(sort $(.VARIABLES)),$(if $(filter-out environment% default automatic,$(origin $V)),$(info $V=$(value $V))))

.PHONY: printenvcfg
printenvcfg: ## Print the environment the resulting exported environment
@env | grep -e ^DATABASE_ -e ^KAFKA_ -e ^APP_ -e ^WEB_ -e ^LOGGING_ -e ^CONFIG_PATH= | sort

0 comments on commit 68e7521

Please sign in to comment.