feat(task): add load and save dotenv functionality from pass entry
This commit is contained in:
1 file changed
+3
@@ -26,7 +26,9 @@ function help() {
|
||||
printf "$COLUMN" "template-dotenv" "" "Generate .env from .env.template."
|
||||
printf "$COLUMN" "test-k8s" "[clean]" "Test Kubernetes environment."
|
||||
printf "$COLUMN" "load-kubeconfig" "" "Load kubeconfig file from pass."
|
||||
printf "$COLUMN" "load-dotenv" "" "Restore content to .env from pass entry."
|
||||
printf "$COLUMN" "save-kubeconfig" "" "Save kubeconfig file in pass."
|
||||
printf "$COLUMN" "save-dotenv" "" "Store content of .env in pass entry."
|
||||
# Docs
|
||||
printf "$COLUMN" "install" "" "Install node dependencies."
|
||||
printf "$COLUMN" "dev-vitepress" "" "Start VitePress dev server."
|
||||
@@ -83,6 +85,7 @@ RELEASE_NAME=${RELEASE_NAME:="odoo"}
|
||||
|
||||
# Dynamic vars
|
||||
|
||||
PASS_ENTRY=$(echo "env/${PWD##*/}" | tr '[:upper:]' '[:lower:]')
|
||||
PASS_KUBECONFIG_ENTRY=$(echo "env/kubeconfig_$USER" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
# Import commands
|
||||
|
||||
Reference in new issue
Block a user