hrishikeshrt / PyCDSL

Python Interface to Cologne Digital Sanskrit Lexicon (CDSL)
https://pypi.org/project/PyCDSL/
Other
12 stars 1 forks source link

Use cmd2.Cmd instead of cmd.Cmd #26

Closed hrishikeshrt closed 2 years ago

hrishikeshrt commented 2 years ago

Feature Description

Using cmd2.Cmd as a base class for shell.CDSLShell instead of shell.BasicShell, which in itself is an extension of cmd.Cmd.

Reasons

cmd2 is full of useful features. This change will add all the features of shell.BasicShell and much more, such as support for persistent history, running basic set of commands at startup (such as setting dictionary choices, schemes etc), transcripts (towards unit testing), copy to clipboard etc.

Caution: There are a few pitfalls, the way default() and cmdloop() etc are handled in cmd2. So this needs more attention.

PROs:

CONs: