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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoder/decoder for percent-encoding (URL/URI encoding) #1529
Labels
Comments
Looks like Go has built-in batteries to encode/decode percent-encoding in |
Nice find - should be pretty easy to add that in 馃憤馃徏 |
Wow, nice you already implemented this! 馃挴 |
Released in v4.31.1 :) |
Just tested the released binary:
Works exactly like proposed! :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please describe your feature request.
(( First of all, thank you very much for developing
yq
. This is really a great swiss army knife for YAML! 馃挴 ))It would be quite handy for
yq
to support percent-encoding (aka URL/URI encoding) as an encoder/decoder, similar to the existing@base64
encoder/decoder pair. For instance,jq
supports this as a string formatter:This is specially handy when constructing URLs from dynamic values. A hypothetical example:
Describe alternatives you've considered
Within
yq
, it doesn't seem to be possible to perform percent-encoding. Using other tools,jq
supports encoding like shown above, therefore the current workaround is to usejq
to encode the value and then pass it toyq
to insert into a YAML document.The text was updated successfully, but these errors were encountered: