mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
fix: Add --env-vars, deprecate --envs (#410)
This commit is contained in:
parent
b12f0c662c
commit
2b35cad50f
15 changed files with 24 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue