|
16 | 16 |
|
17 | 17 | Main features: |
18 | 18 |
|
19 | | - - Searchable command history (`history` command and `<Ctrl>+r`) |
| 19 | + - Searchable command history (`history` command and `<Ctrl>+r`) - optionally persistent |
20 | 20 | - Text file scripting of your application with `load` (`@`) and `_relative_load` (`@@`) |
21 | 21 | - Python scripting of your application with ``pyscript`` |
22 | 22 | - Run shell commands with ``!`` |
23 | 23 | - Pipe command output to shell commands with `|` |
24 | 24 | - Redirect command output to file with `>`, `>>` |
25 | 25 | - Bare `>`, `>>` with no filename send output to paste buffer (clipboard) |
26 | 26 | - `py` enters interactive Python console (opt-in `ipy` for IPython console) |
| 27 | + - Option to display long output using a pager with ``cmd2.Cmd.ppaged()`` |
27 | 28 | - Multi-line commands |
28 | 29 | - Special-character command shortcuts (beyond cmd's `?` and `!`) |
| 30 | + - Command aliasing similar to bash `alias` command |
| 31 | + - Macros, which are similar to aliases, but can take arguments when called |
| 32 | + - Ability to load commands at startup from an initialization script |
29 | 33 | - Settable environment parameters |
30 | 34 | - Parsing commands with arguments using `argparse`, including support for sub-commands |
31 | 35 | - Unicode character support |
|
34 | 38 | - Trivial to provide built-in help for all commands |
35 | 39 | - Built-in regression testing framework for your applications (transcript-based testing) |
36 | 40 | - Transcripts for use with built-in regression can be automatically generated from `history -t` |
| 41 | + - Alerts that seamlessly print while user enters text at prompt |
37 | 42 |
|
38 | 43 | Usable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd. |
39 | 44 |
|
|
0 commit comments