This commit is contained in:
Mike Farah
2021-01-09 11:38:08 +11:00
parent c12764dba8
commit aabed1a237
5 changed files with 60 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
## Read boolean environment variable as a string
Running
```bash
myenv="true" yq eval --null-input 'strenv(myenv)'
```
will output
```yaml
12
```
## Read numeric environment variable as a string
Running
```bash
myenv="12" yq eval --null-input 'strenv(myenv)'
```
will output
```yaml
12
```