We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I suggest to add an operator similar to envsubst to explicitly invoke the new string interpolation feature on a value.
For example,
color: green fruit: '\(color) apple'
yq '.fruit |= interpolate' sample.yaml
Could output
color: green fruit: 'green apple'
Note that the uninterpolated cannot use double quotes since \( is not a valid escape sequence.
\(
Here is an example using envsubst:
fruit: '${color} apple'
color=green yq '.fruit |= envsubst' sample.yaml
outputs
fruit: 'green apple'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I suggest to add an operator similar to envsubst to explicitly invoke the new string interpolation feature on a value.
For example,
yq '.fruit |= interpolate' sample.yaml
Could output
Note that the uninterpolated cannot use double quotes since
\(
is not a valid escape sequence.Here is an example using envsubst:
color=green yq '.fruit |= envsubst' sample.yaml
outputs
The text was updated successfully, but these errors were encountered: