mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-27 08:55:37 +00:00
293 B
293 B
Read boolean environment variable as a string
Running
myenv="true" yq eval --null-input 'strenv(myenv)'
will output
12
Read numeric environment variable as a string
Running
myenv="12" yq eval --null-input 'strenv(myenv)'
will output
12