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.
Feature Description
Using cmd2.Cmd as a base class for
shell.CDSLShell
instead ofshell.BasicShell
, which in itself is an extension ofcmd.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()
andcmdloop()
etc are handled in cmd2. So this needs more attention.PROs:
CONs: