Closed chancez closed 5 years ago
This allows (and enables for yaml/json) writing out multiple resources in a streaming fashion, using --- between multiple documents when output-format is yaml, and using \n for other formats.
---
\n
Supersedes #56
Here's what the yaml stream output looks like:
~/g/s/g/j/faq chance@reverse ❯❯❯ ./faq-darwin-amd64 . -o yaml <(echo '--- {}\n--- {}') <(echo '--- {}\n--- {}') {} --- {} --- {} --- {}
And JSON remains the same:
~/g/s/g/j/faq chance@reverse ❯❯❯ ./faq-darwin-amd64 . -o json <(echo '--- {}\n--- {}') <(echo '--- {}\n--- {}') {} {} {} {}
This allows (and enables for yaml/json) writing out multiple resources in a streaming fashion, using
---
between multiple documents when output-format is yaml, and using\n
for other formats.Supersedes #56
Here's what the yaml stream output looks like:
And JSON remains the same: