Closed jean-christophe-manciot closed 4 years ago
You are looking to preserve explicit start and explicit end YAML document markers. This is not yet supported by yq. I will add this as an option.
Hello. I digged in code to found it is possible to add argument --explicit-start
to yq, it is not showed in help. Why do you suppress it?
If the feature is available, I am so quite curious why it is hidden.
The new options are --explicit-start
and --explicit-end
.
OK, I documented the new options in the readme and online help.
OK, I documented the new options in the readme and online help.
Thanks, but why do you supress it in the --help? https://github.com/kislyuk/yq/blob/5d0be22c271bd8dbf80b7509cf64240d0f2ca555/yq/parser.py#L102
It's suppressed by default because the help strings are used for 3 different utilities (yq, xq and tomlq) and un-suppressed for yq.
yq: 2.10.0 With the following input yaml file
yaml_list_dict.yml
:The following command breaks the original format:
The original
---`` and
...``` have been removed. Am I missing something?