Skip to content

Commit

Permalink
Add ability to specify --hook-config in future
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov committed Jul 4, 2022
1 parent cf6f19a commit eea6c00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hooks/terraform_validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function main {
# global variables with appropriate values
# Globals (init and populate):
# ARGS (array) arguments that configure wrapped tool behavior
# HOOK_CONFIG (array) arguments that configure hook behavior
# INIT_ARGS (array) arguments to `terraform init` command
# ENVS (array) environment variables that will be used with
# `terraform` commands
Expand All @@ -56,6 +57,11 @@ function parse_cmdline_ {
ARGS+=("$1")
shift
;;
-h | --hook-config)
shift
HOOK_CONFIG+=("$1;")
shift
;;
-i | --init-args)
shift
INIT_ARGS+=("$1")
Expand Down

0 comments on commit eea6c00

Please sign in to comment.