We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
terraform_docs
--hook-config
1 parent e032273 commit 87143fbCopy full SHA for 87143fb
hooks/terraform_docs.sh
@@ -93,7 +93,10 @@ function terraform_docs {
93
for c in "${configs[@]}"; do
94
95
IFS="=" read -r -a config <<< "$c"
96
- key=${config[0]}
+ # $hook_config receives string like '--foo=bar; --baz=4;' etc.
97
+ # It gets split by `;` into array, which we're parsing here ('--foo=bar' ' --baz=4')
98
+ # Next line removes leading spaces, to support >1 `--hook-config` args
99
+ key="${config[0]## }"
100
value=${config[1]}
101
102
case $key in
0 commit comments