remarshal-project / remarshal

Convert between CBOR, JSON, MessagePack, TOML, and YAML

Home Page:https://pypi.org/project/remarshal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feedback wanted: removing the short `format2format` commands or replacing them with `2format` commands

dbohdan opened this issue · comments

When you install Remarshal, it installs 25 short commands: {cbor,json,msgpack,toml,yaml}2{cbor,json,msgpack,toml,yaml}. It makes your tab completion list for {cbor,json,msgpack,toml,yaml}* commands longer and~/.locab/bin more cluttered. When I implemented short commands, Remarshal could not automatically choose the input file format based on the extension. It was a good reason for the short commands to exist. Now Remarshal can. This means it has become possible to replace many uses of format2format with short commands based only on the target format, like 2format (for example, 2yaml). It would not work in all cases format2format does. Converting standard input or files with no or a nonstandard extension with 2format would require you to give the command an input format as an option.

I have noticed I mostly use the remarshal command when I need Remarshal. What about you? If you use Remarshal, I want to hear what you think. Would you like to see the short commands as they are right now replaced with 2format commands or removed altogether? If I do not receive enough affirmative feedback, I am going to keep the short commands unchanged by default.

Closing due to a lack of responses. The short commands are staying.