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.57k stars 82 forks source link

[Feature request] add flag to disable wrapping when using --yaml-output or --yaml-roundtrip #113

Open kindrowboat opened 3 years ago

kindrowboat commented 3 years ago

Hello! Thank you for this tool. I've been using it for a while in a few projects. In one of my projects, I am emailing and SMSing the resulting YAML (I know, a little weird,) and so the word wrapping can look off, especially if the recipient is using a non-fix-width. I know you can set --width to be arbitrarily large, but to me that feels a little clunky. Would you consider adding a flag, (e.g. --no-width or --no-wrap) to disable the wraping?

If you're OK with adding that flag, I'd be happy to submit a PR.

kislyuk commented 3 years ago

This sounds good to me. I think I'd prefer to have --width 0 to trigger this. Please open a PR.