Menu

#3 feature_request(prettify): add prettify and sort features

unread
nobody
None
minor
enhancement
2020-01-23
2020-01-23
No

1. Summary

In header.

2. Argumentation

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:

  1. I must place extra file ruamelprettify.py in each repository, where I want prettify YAML files.
  2. my project — Sublime Text package. I can't have .py files, that contains sys.argv in Sublime Text. I must:

    • rename anyfilenameruamelprettify.py
    • prettify YAML files
    • rename backward ruamelprettify.pyanyfilename

3. Examples of expected behavior

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>)

Discussion


Log in to post a comment.