mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 00:54:51 +08:00
put comments on key node instead
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user