To convert to property file format, use
-o=p. Porting the comments from the
yaml file to the property file is still in progress, currently line comments on the node values will be copied across.
Given a sample file of:
# block comments don't come throughperson: # neither do comments on mapsname: Mike # comments on values appearpets:- cat # comments on array values appearfood: [pizza] # comments on arrays do not
yq eval -o=p sample.yaml
# comments on values appearperson.name = Mike# comments on array values appearperson.pets.0 = catperson.food.0 = pizza