mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08: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