feature_request(prettify): add prettify and sort features
commandline utility to manipulate YAML files
Brought to you by:
anthon
In header.
At the time I delete extra {braces}
, [brackets]
and 'quotes'
, use this code. This is not very convenient.
Example: in my real project I prettify YAML files remotely:
ruamelprettify.py
in each repository, where I want prettify YAML files.my project — Sublime Text package. I can't have .py
files, that contains sys.argv
in Sublime Text. I must:
anyfilename
→ ruamelprettify.py
ruamelprettify.py
→ anyfilename
If:
yaml prettify <file_name>
ruamel.yaml.cmd will prettify <file_name>
.
Else:
yaml sort <file_name>
ruamel.yaml.cmd will sort <file_name>
.
Thanks.
(originally posted on 2018-04-24 at 08:41:07 by Саша Черных <Саша Черных@bitbucket>)