mercari / hcledit

Go package to edit HCL configuration
MIT License
44 stars 14 forks source link

Output result to stdout instead of file when setting values #63

Open joonvena opened 2 years ago

joonvena commented 2 years ago

Would be nice to have an option to output the changes to stdout instead of overwriting the file with the changes.

jgoldschrafe commented 1 year ago

I'm not related to the project, but you can render the AST out using editor.Bytes() and do whatever you want with the bytes: output to stdout, diff against the original version, etc.