From 68e7521e9470e9802abc1c0f63b259e6af248358 Mon Sep 17 00:00:00 2001 From: Alejandro Visiedo Date: Wed, 20 Sep 2023 22:06:23 +0200 Subject: [PATCH] feat: add printenvcfg rule 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 --- scripts/mk/printvars.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/mk/printvars.mk b/scripts/mk/printvars.mk index 83d0ae6d..5e2d94e1 100644 --- a/scripts/mk/printvars.mk +++ b/scripts/mk/printvars.mk @@ -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