fixing property comment handling

This commit is contained in:
Mike Farah
2022-10-26 13:12:30 +11:00
parent 2e588a11a0
commit 23b2aa5668
6 changed files with 20 additions and 7 deletions
+3 -1
View File
@@ -139,7 +139,8 @@ yq -p=props sample.properties
will output
```yaml
person:
name: Mike Wazowski # comments on values appear
name: Mike Wazowski # block comments come through
# comments on values appear
pets:
- cat # comments on array values appear
food:
@@ -164,6 +165,7 @@ yq -p=props -o=props '.person.pets.0 = "dog"' sample.properties
```
will output
```properties
# block comments come through
# comments on values appear
person.name = Mike Wazowski