Skip to content

Commit eea6c00

Browse files
committed
Add ability to specify --hook-config in future
1 parent cf6f19a commit eea6c00

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

hooks/terraform_validate.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function main {
3636
# global variables with appropriate values
3737
# Globals (init and populate):
3838
# ARGS (array) arguments that configure wrapped tool behavior
39+
# HOOK_CONFIG (array) arguments that configure hook behavior
3940
# INIT_ARGS (array) arguments to `terraform init` command
4041
# ENVS (array) environment variables that will be used with
4142
# `terraform` commands
@@ -56,6 +57,11 @@ function parse_cmdline_ {
5657
ARGS+=("$1")
5758
shift
5859
;;
60+
-h | --hook-config)
61+
shift
62+
HOOK_CONFIG+=("$1;")
63+
shift
64+
;;
5965
-i | --init-args)
6066
shift
6167
INIT_ARGS+=("$1")

0 commit comments

Comments
 (0)