mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 00:54:51 +08:00
fixing property comment handling
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user