Skip to content
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

Can't handle multiple yaml documents within one file #16

Closed
Godley opened this issue Jul 25, 2017 · 3 comments
Closed

Can't handle multiple yaml documents within one file #16

Godley opened this issue Jul 25, 2017 · 3 comments

Comments

@Godley
Copy link

Godley commented Jul 25, 2017

Say I have:

---
mykey: myvalue
---
mykey: myothervalue
---
mykey: myotherothervalue

I'd expect the tool to be able to handle all three documents and give me a list of values when I run
yaml r myfile.yaml mykey, instead it'd just give me the first value.

Is this something you'd be willing to add as a feature? Happy to work on it myself but I have limited go knowledge.

@mikefarah
Copy link
Owner

mikefarah commented Jul 25, 2017

Yep this is a known issue with the yaml library I'm using, see https://github.com/mikefarah/yaml/issues/9

@Godley
Copy link
Author

Godley commented Jul 26, 2017

ah, apologies for the duplication!

@mikefarah
Copy link
Owner

All good - the title on #9 isn't very clear now that I think of it, I'm going to use yours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants