Cleanup test

This commit is contained in:
Mike Farah
2021-12-02 20:06:51 +11:00
parent df5128fa36
commit 855b3c4b47
2 changed files with 3 additions and 24 deletions
-20
View File
@@ -157,26 +157,6 @@ b: |
bob: dylan
```
## Encode value as yaml string, using toyaml
Does the same thing as to_yaml, matching jq naming convention.
Given a sample.yml file of:
```yaml
a:
cool: thing
```
then
```bash
yq eval '.b = (.a | to_yaml)' sample.yml
```
will output
```yaml
a:
cool: thing
b: |
cool: thing
```
## Decode a yaml encoded string
Given a sample.yml file of:
```yaml