11
11
Drop-in replacement adds several features for command-prompt tools:
13
* Searchable command history (commands: "hi", "li", "run")
14
* Load commands from file, save to file, edit commands in file
16
* Case-insensitive commands
17
* Special-character shortcut commands (beyond cmd's "@" and "!")
18
* Settable environment parameters
19
* Parsing commands with flags
20
* > (filename), >> (filename) redirect output to file
21
* < (filename) gets input from file
22
* bare >, >>, < redirect to/from paste buffer
23
* accepts abbreviated commands when unambiguous
24
* `py` enters interactive Python console
25
* test apps against sample session transcript (see example/example.py)
13
* Searchable command history (commands: "hi", "li", "run")
14
* Load commands from file, save to file, edit commands in file
16
* Case-insensitive commands
17
* Special-character shortcut commands (beyond cmd's "@" and "!")
18
* Settable environment parameters
19
* Parsing commands with flags
20
* > (filename), >> (filename) redirect output to file
21
* < (filename) gets input from file
22
* bare >, >>, < redirect to/from paste buffer
23
* accepts abbreviated commands when unambiguous
24
* `py` enters interactive Python console
25
* test apps against sample session transcript (see example/example.py)
27
27
Useable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd.
29
Running `2to3 <http://docs.python.org/library/2to3.html>` against ``cmd2.py``
29
Running `2to3 <http://docs.python.org/library/2to3.html>` against ``cmd2.py``
30
30
generates working, Python3-based code.
32
32
See docs at http://packages.python.org/cmd2/