Hello (and thank you for this tools),
The tools work well with "simple" template where block span only on one line but on multi line block helmfmt
align all line to the same indentation.
It will be great to indent block base on parentheses.
example:
Current behavior:
{{- if .enabled -}}
{{- $deny := include "network.listByFamily" (dict
"ctx" .
"ipv4" (dict
"enabled" $v4On
"subnets" (concat ($ipv4.defaultDenylist | default list) ($ipv4.denylist | default list))
)
"ipv6" (dict
"enabled" $v6On
"subnets" (concat ($ipv6.defaultDenylist | default list) ($ipv6.denylist | default list))
)
)
-}}
{{- end -}}
expected behavior:
{{- if .enabled -}}
{{- $deny := include "network.listByFamily" (dict
"ctx" .
"ipv4" (dict
"enabled" $v4On
"subnets" (concat ($ipv4.defaultDenylist | default list) ($ipv4.denylist | default list))
)
"ipv6" (dict
"enabled" $v6On
"subnets" (concat ($ipv6.defaultDenylist | default list) ($ipv6.denylist | default list))
)
)
-}}
{{- end -}}
Note: If you agree with this feature i will be willing to propose a PR for it.
Hello (and thank you for this tools),
The tools work well with "simple" template where block span only on one line but on multi line block helmfmt
align all line to the same indentation.
It will be great to indent block base on parentheses.
example:
Current behavior:
expected behavior:
Note: If you agree with this feature i will be willing to propose a PR for it.