Open
Description
I've seen a code which mixes .gt.
and >
- awful!
Thought about contributing this... but stumbled across the longish __init__.py
.
It's very difficult to find out where such a thing should be added. What I thought about was: plugins.
If there were a directory plugins
, then adding a new formatting option would be as simple as:
- Write the needed code in
plugins/mynewplugin.py
, matching a predefined interface (inheriting an ABC [1] ?) - Register that in
__init__.py
, possibly binding that to command line options (there may be dependencies between plugins)
For example, replacing .gt.
with >
could be as simple as a find-and-replace. This would make the code much clearer and much easier to contribute to.