1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00
yq/pkg/yqlib/doc/Env Variable Operators.md
Mike Farah 34bc33d5c5 strenv
2021-02-11 10:58:40 +11:00

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