fix: Add --env-vars, deprecate --envs (#410)

This commit is contained in:
Maksym Vlasov 2022-07-06 15:41:28 +03:00 committed by Anton Babenko
commit 2b35cad50f
15 changed files with 24 additions and 22 deletions

View file

@ -13,7 +13,7 @@ export AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:-us-east-1}
function main {
common::initialize "$SCRIPT_DIR"
common::parse_cmdline "$@"
common::export_provided_env_vars "${ENVS[@]}"
common::export_provided_env_vars "${ENV_VARS[@]}"
common::parse_and_export_env_vars
# Suppress terraform validate color
@ -34,7 +34,7 @@ function main {
# args (string with array) arguments that configure wrapped tool behavior
# dir_path (string) PATH to dir relative to git repo root.
# Can be used in error logging
# ENVS (array) environment variables that will be used with
# ENV_VARS (array) environment variables that will be used with
# `terraform` commands
# Outputs:
# If failed - print out hook checks status