put comments on key node instead

This commit is contained in:
Mike Farah
2022-10-27 15:27:37 +11:00
parent 7eccbe5902
commit fd79ac8603
8 changed files with 99 additions and 37 deletions
+4 -2
View File
@@ -139,10 +139,12 @@ yq -p=props sample.properties
will output
```yaml
person:
name: Mike Wazowski # block comments come through
# block comments come through
# comments on values appear
name: Mike Wazowski
pets:
- cat # comments on array values appear
# comments on array values appear
- cat
food:
- pizza
```