kislyuk / yq

Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
https://kislyuk.github.io/yq/
Apache License 2.0
2.53k stars 81 forks source link

add `fromyaml` like jqs `fromjson` #159

Closed cwrau closed 1 year ago

cwrau commented 1 year ago

Would it be possible to add fromyaml? So we can parse sub-strings from yaml?

kislyuk commented 1 year ago

Not possible in the current architecture. yq is a wrapper around jq, and we don't have any way to add these kinds of commands to jq.

kislyuk commented 1 year ago

I'm going to close this issue for now since it's not planned to do anything about it. If you have any other thoughts, feel free to add them here or open a new issue.

cwrau commented 1 year ago

Ah, I understand 😕

I opened https://github.com/stedolan/jq/issues/2530

hoping for the best 🤞