k2tf icon indicating copy to clipboard operation
k2tf copied to clipboard

Support HEREDOC for multi-line config values

Open nigelellis opened this issue 4 years ago • 3 comments

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.

nigelellis avatar Jun 22 '20 23:06 nigelellis

Good suggestion - thanks @nigelellis.

sl1pm4t avatar Jul 01 '20 04:07 sl1pm4t