yq/pkg/yqlib/doc/operators/headers/env-variable-operators.md

4 lines
486 B
Markdown
Raw Normal View History

2021-11-03 04:00:58 +00:00
# Env Variable Operators
2021-01-10 00:09:59 +00:00
2021-11-03 04:00:58 +00:00
This operator is used to handle environment variables usage in path expressions. While environment variables can, of course, be passed in via your CLI with string interpolation, this often comes with complex quote escaping and can be tricky to write and read. Note that there are two forms, `env` which will parse the environment variable as a yaml (be it a map, array, string, number of boolean) and `strenv` which will always parse the argument as a string.