yq/pkg/yqlib/doc/Env Variable Operators.md
Mike Farah aabed1a237 strenv
2021-01-09 11:38:08 +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