sl1pm4t / k2tf

Kubernetes YAML to Terraform HCL converter
Mozilla Public License 2.0
1.17k stars 108 forks source link

Support HEREDOC for multi-line config values #66

Open nigelellis opened 4 years ago

nigelellis commented 4 years ago

I've been converting a bunch of complex multi-line config files over. For readability, it would be great to support optional HEREDOC style multi-line string values.

For example rather than:

  ...
  value = "line1\nline2\n...lineX\n"
  ...

The tool could generate:

  ...
  value = <<EOF
line1
line2
...
lineX
EOF
  ...

Thanks for pulling together such a great tool.

sl1pm4t commented 4 years ago

Good suggestion - thanks @nigelellis.

simonkarman commented 1 month ago

Hey @sl1pm4t I was looking for the same functionality @nigelellis mentioned here. Any chance this will be added to the tool soon? Or can I help to add it?

sl1pm4t commented 1 month ago

Hi @simonkarman - it's unlikely I'll have time to add such a feature, but happy to receive PRs. Thanks!