-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: Multi document output #187
Comments
Hi @pacorreia The issue of outputting multiple documents has been brought up before and the decision back then was to wait and see. The current implementation of We work around this by using the We can add a new commandlet as you suggested, but I believe we could potentially have a cleaner solution to this. We can define a new custom type like We could then have This would allow us to still use What do you think? |
Hey, Got you perfectly, and knew it was about the type, indeed is hard to distinguish where to draw a 'line' between each documento. Your suggestion looks sensible to me and would work. |
I'll try to create a proof of concept soon. And we can discuss on the PR. |
Reach out if you feel like discussing it before the PR |
First of all awesome work with this module!
It really helped me a lot, but I had to find a workaround for saving multi documents.
My use case is very simple, a K8s manifest with several resources defined.
I Import an existing yaml file, do my changes and by the time I have to save it to a new yaml file this is what I use:
Found that when converting from YAML, I get an object of type System.Array, indexed by [int]
So was easy for me to be lazy and generate the YAML for each item at a time, add the "---" at the end, save to the file and keep going
Hope it can serve as base for a much more elegant solution, for now, this one just works like charm for me
The text was updated successfully, but these errors were encountered: