-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Why does yq output ... at the end? #109
Comments
Similarly, yq -y with some expressions puts user:
name: Ray Output of
But this one is really odd:
~/source » yq -Y '.. | tostring | startswith("!secret")' arch.yml rayben@rayarchpad
false
--- false
--- false
--- true
--- false
--- false
--- false |
Please see #104. |
Any idea on the second issue though or are they related and will both be
fixed at the same time?
…On Wed, Dec 30, 2020, 9:23 AM Andrey Kislyuk ***@***.***> wrote:
Please see #104 <#104>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#109 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3BD2TYSHAIYEOW5TTRXT3SXNOYDANCNFSM4VOAKLEQ>
.
|
That is a different issue, actually. You asked yq to translate a stream of multiple JSON documents back into YAML. But in YAML, unlike JSON, there is no unambiguous way to distinguish between a document boundary and a continuation of the existing document. So you will see PyYAML emit document separators ( |
It may be that in your last example there are missing newlines, though. I'll take a look at that (#110). |
Thanks, I guess what I am looking for may not be possible at this time (or have to use sed/grep/etc): I want to take the following:
And I want to say 'are there any values in this document (one or more) that contain the tag And then I want to say
That way I know what I am reading is an encrypted value. |
Example:
Output
The text was updated successfully, but these errors were encountered: