-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
Add Powershell and CMD wrappers #841
Comments
The approaches mentioned above may be useful in correcting the documentation found here. |
Cool - thanks for this @phreed - if the ps1 file is added, then what should the instructions be for running |
I did not write it to be a complete wrapper (the eval command is assumed) but other than that it is pretty much what you might expect. yq.ps1 <filter> sample.yaml
yq.ps1 '.someNew="content"' sample.yaml The filter needs to be enclosed in single quotes to protect any double quotes. |
Cool - happy to take your direction, I'm not a powershell user so I'm at a bit of a loss with these things. |
Any luck with a PR for this? |
I got most of it working and then took a holiday.
I have to get some things done for my day job and then I will get back to
this.
…On Thu, Jun 24, 2021 at 10:21 PM Mike Farah ***@***.***> wrote:
Any luck with a PR for this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#841 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABTVPGMFD5HOQ2F4B5IQKLTUPY5LANCNFSM45XRQHYQ>
.
|
I'm using yq in powershell and would be happy to see it work without workaround! |
There are issues with escaping evaluation strings on Windows. see #747 #777 et al.
Add a
yq.ps1
filealternatives
Update the documentation to show how to escape/replace '"' with '"'.
I have not looked into what a similar *.bat or *.cmd file might look like.
The text was updated successfully, but these errors were encountered: