|
|
@ -596,8 +596,8 @@ endfunction
|
|
|
|
" Hashicorp Terraform
|
|
|
|
" Hashicorp Terraform
|
|
|
|
function! TerraformValidate()
|
|
|
|
function! TerraformValidate()
|
|
|
|
" remove terraform plan copy-pasted removals for fast backporting
|
|
|
|
" remove terraform plan copy-pasted removals for fast backporting
|
|
|
|
:%s/ [-~] //e
|
|
|
|
:%s/^[[:space:]]*[-~][[:space:]]//e
|
|
|
|
:%s/ -> .*//e
|
|
|
|
:%s/[[:space:]]->[[:space:]].*$//e
|
|
|
|
:!clear; bash -c 'if [ -d "%:p:h"/.terraform ]; then cd "%:p:h"; fi; { terraform fmt -diff; terraform validate; } | more -R'
|
|
|
|
:!clear; bash -c 'if [ -d "%:p:h"/.terraform ]; then cd "%:p:h"; fi; { terraform fmt -diff; terraform validate; } | more -R'
|
|
|
|
endfunction
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
|
|