|
101 | 101 | prompts. |
102 | 102 | - This fix introduces behavior where an updated prompt won't display after an aborted search |
103 | 103 | until a user presses Enter. See |
104 | | - [async_printing.py](https://github.com/python-cmd2/cmd2/blob/master/examples/async_printing.py) |
| 104 | + [async_printing.py](https://github.com/python-cmd2/cmd2/blob/main/examples/async_printing.py) |
105 | 105 | example for how to handle this case using `Cmd.need_prompt_refresh()` and |
106 | 106 | `Cmd.async_refresh_prompt()`. |
107 | 107 | - Enhancements |
|
321 | 321 | persistent history files created with versions older than 2.0.0 are not compatible. |
322 | 322 | - Enhancements |
323 | 323 | - Added support for custom tab completion and up-arrow input history to `cmd2.Cmd2.read_input`. |
324 | | - See [read_input.py](https://github.com/python-cmd2/cmd2/blob/master/examples/read_input.py) |
325 | | - for an example. |
| 324 | + See [read_input.py](https://github.com/python-cmd2/cmd2/blob/main/examples/read_input.py) for |
| 325 | + an example. |
326 | 326 | - Added `cmd2.exceptions.PassThroughException` to raise unhandled command exceptions instead of |
327 | 327 | printing them. |
328 | 328 | - Added support for ANSI styles and newlines in tab completion results using |
|
534 | 534 | - See [table_creation](https://cmd2.readthedocs.io/en/latest/features/table_creation.html) |
535 | 535 | documentation for an overview. |
536 | 536 | - See |
537 | | - [table_creation.py](https://github.com/python-cmd2/cmd2/blob/master/examples/table_creation.py) |
| 537 | + [table_creation.py](https://github.com/python-cmd2/cmd2/blob/main/examples/table_creation.py) |
538 | 538 | for an example. |
539 | 539 | - Added the following exceptions to the public API |
540 | 540 | - `SkipPostcommandHooks` - Custom exception class for when a command has a failure bad |
|
786 | 786 | - Greatly simplified using argparse-based tab completion. The new interface is a complete |
787 | 787 | overhaul that breaks the previous way of specifying completion and choices functions. See |
788 | 788 | header of |
789 | | - [argparse_custom.py](https://github.com/python-cmd2/cmd2/blob/master/cmd2/argparse_custom.py) |
| 789 | + [argparse_custom.py](https://github.com/python-cmd2/cmd2/blob/main/cmd2/argparse_custom.py) |
790 | 790 | for more information. |
791 | 791 | - Enabled tab completion on multiline commands |
792 | 792 | - **Renamed Commands Notice** |
|
1109 | 1109 | - Added `async_alert`, `async_update_prompt`, and `set_window_title` functions |
1110 | 1110 | - These allow you to provide feedback to the user in an asynchronous fashion, meaning alerts |
1111 | 1111 | can display when the user is still entering text at the prompt. See |
1112 | | - [async_printing.py](https://github.com/python-cmd2/cmd2/blob/master/examples/async_printing.py) |
| 1112 | + [async_printing.py](https://github.com/python-cmd2/cmd2/blob/main/examples/async_printing.py) |
1113 | 1113 | for an example. |
1114 | 1114 | - Cross-platform colored output support |
1115 | 1115 | - `colorama` gets initialized properly in `Cmd.__init()` |
|
1147 | 1147 | - New dependency on `attrs` third party module |
1148 | 1148 | - Added `matches_sorted` member to support custom sorting of tab completion matches |
1149 | 1149 | - Added |
1150 | | - [tab_autocomp_dynamic.py](https://github.com/python-cmd2/cmd2/blob/master/examples/tab_autocomp_dynamic.py) |
| 1150 | + [tab_autocomp_dynamic.py](https://github.com/python-cmd2/cmd2/blob/main/examples/tab_autocomp_dynamic.py) |
1151 | 1151 | example |
1152 | 1152 | - Demonstrates updating the argparse object during init instead of during class construction |
1153 | 1153 | - Deprecations |
|
1190 | 1190 | - If `chop` is `False`, then `self.pager` is used as the pager |
1191 | 1191 | - Otherwise `self.pager_chop` is used as the pager |
1192 | 1192 | - Greatly improved the |
1193 | | - [table_display.py](https://github.com/python-cmd2/cmd2/blob/master/examples/table_display.py) |
| 1193 | + [table_display.py](https://github.com/python-cmd2/cmd2/blob/main/examples/table_display.py) |
1194 | 1194 | example |
1195 | 1195 | - Now uses the new [tableformatter](https://github.com/python-tableformatter/tableformatter) |
1196 | 1196 | module which looks better than `tabulate` |
|
1224 | 1224 | - Enhancements |
1225 | 1225 | - Automatic completion of `argparse` arguments via `cmd2.argparse_completer.AutoCompleter` |
1226 | 1226 | - See the |
1227 | | - [tab_autocompletion.py](https://github.com/python-cmd2/cmd2/blob/master/examples/tab_autocompletion.py) |
| 1227 | + [tab_autocompletion.py](https://github.com/python-cmd2/cmd2/blob/main/examples/tab_autocompletion.py) |
1228 | 1228 | example for a demonstration of how to use this feature |
1229 | 1229 | - `cmd2` no longer depends on the `six` module |
1230 | 1230 | - `cmd2` is now a multi-file Python package instead of a single-file module |
|
1262 | 1262 | [Argument Processing](http://cmd2.readthedocs.io/en/latest/argument_processing.html) |
1263 | 1263 | section of the documentation for more information on these decorators |
1264 | 1264 | - Alternatively, see the |
1265 | | - [argparse_example.py](https://github.com/python-cmd2/cmd2/blob/master/examples/argparse_example.py) |
| 1265 | + [argparse_example.py](https://github.com/python-cmd2/cmd2/blob/main/examples/argparse_example.py) |
1266 | 1266 | - Deleted `cmd_with_subs_completer`, `get_subcommands`, and `get_subcommand_completer` |
1267 | 1267 | - Replaced by default AutoCompleter implementation for all commands using argparse |
1268 | 1268 | - Deleted support for old method of calling application commands with `cmd()` and `self` |
|
1305 | 1305 | [Grouping Commands](http://cmd2.readthedocs.io/en/latest/argument_processing.html?highlight=verbose#grouping-commands) |
1306 | 1306 | section of the docs for more info |
1307 | 1307 | - See |
1308 | | - [help_categories.py](https://github.com/python-cmd2/cmd2/blob/master/examples/help_categories.py) |
| 1308 | + [help_categories.py](https://github.com/python-cmd2/cmd2/blob/main/examples/help_categories.py) |
1309 | 1309 | for an example |
1310 | 1310 | - Tab completion of paths now supports ~user user path expansion |
1311 | 1311 | - Simplified implementation of various tab completion functions so they no longer require |
|
1357 | 1357 | - `cmd_with_subs_completer()` no longer takes an argument called `base`. Adding tab completion |
1358 | 1358 | to subcommands has been simplified to declaring it in the subcommand parser's default |
1359 | 1359 | settings. This easily allows arbitrary completers like path_complete to be used. See |
1360 | | - [subcommands.py](https://github.com/python-cmd2/cmd2/blob/master/examples/subcommands.py) for |
1361 | | - an example of how to use tab completion in subcommands. In addition, the docstring for |
| 1360 | + [subcommands.py](https://github.com/python-cmd2/cmd2/blob/main/examples/subcommands.py) for an |
| 1361 | + example of how to use tab completion in subcommands. In addition, the docstring for |
1362 | 1362 | `cmd_with_subs_completer()` offers more details. |
1363 | 1363 |
|
1364 | 1364 | ## 0.8.2 (March 21, 2018) |
|
1376 | 1376 | attribute to enable canceling current line instead of quitting when Ctrl+C is typed |
1377 | 1377 | - Added possibility of having readline history preservation in a SubMenu |
1378 | 1378 | - Added |
1379 | | - [table_display.py](https://github.com/python-cmd2/cmd2/blob/master/examples/table_display.py) |
| 1379 | + [table_display.py](https://github.com/python-cmd2/cmd2/blob/main/examples/table_display.py) |
1380 | 1380 | example to demonstrate how to display tabular data |
1381 | 1381 | - Added command aliasing with `alias` and `unalias` commands |
1382 | 1382 | - Added the ability to load an initialization script at startup |
1383 | 1383 | - See |
1384 | | - [alias_startup.py](https://github.com/python-cmd2/cmd2/blob/master/examples/alias_startup.py) |
| 1384 | + [alias_startup.py](https://github.com/python-cmd2/cmd2/blob/main/examples/alias_startup.py) |
1385 | 1385 | for an example |
1386 | 1386 | - Added a default SIGINT handler which terminates any open pipe subprocesses and re-raises a |
1387 | 1387 | KeyboardInterrupt |
|
1394 | 1394 | - Fixed a bug in a unit test which would fail if your home directory was empty on a Linux system |
1395 | 1395 | - Fixed outdated help text for the **edit** command |
1396 | 1396 | - Fixed outdated |
1397 | | - [remove_unused.py](https://github.com/python-cmd2/cmd2/blob/master/examples/remove_unused.py) |
| 1397 | + [remove_unused.py](https://github.com/python-cmd2/cmd2/blob/main/examples/remove_unused.py) |
1398 | 1398 | - Enhancements |
1399 | 1399 | - Added support for sub-menus. |
1400 | | - - See [submenus.py](https://github.com/python-cmd2/cmd2/blob/master/examples/submenus.py) |
1401 | | - for an example of how to use it |
| 1400 | + - See [submenus.py](https://github.com/python-cmd2/cmd2/blob/main/examples/submenus.py) for |
| 1401 | + an example of how to use it |
1402 | 1402 | - Added option for persistent readline history |
1403 | 1403 | - See |
1404 | | - [persistent_history.py](https://github.com/python-cmd2/cmd2/blob/master/examples/persistent_history.py) |
| 1404 | + [persistent_history.py](https://github.com/python-cmd2/cmd2/blob/main/examples/persistent_history.py) |
1405 | 1405 | for an example |
1406 | 1406 | - See the |
1407 | 1407 | [Searchable command history](http://cmd2.readthedocs.io/en/latest/freefeatures.html#searchable-command-history) |
|
1412 | 1412 | - `exclude_from_help` and `excludeFromHistory` are now instance instead of class attributes |
1413 | 1413 | - Added flag and index based tab completion helper functions |
1414 | 1414 | - See |
1415 | | - [tab_completion.py](https://github.com/python-cmd2/cmd2/blob/master/examples/tab_completion.py) |
| 1415 | + [tab_completion.py](https://github.com/python-cmd2/cmd2/blob/main/examples/tab_completion.py) |
1416 | 1416 | - Added support for displaying output which won't fit on the screen via a pager using `ppaged()` |
1417 | 1417 | - See |
1418 | | - [paged_output.py](https://github.com/python-cmd2/cmd2/blob/master/examples/paged_output.py) |
| 1418 | + [paged_output.py](https://github.com/python-cmd2/cmd2/blob/main/examples/paged_output.py) |
1419 | 1419 | - Attributes Removed (**can cause breaking changes**) |
1420 | 1420 | - `abbrev` - Removed support for abbreviated commands |
1421 | 1421 | - Good tab completion makes this unnecessary and its presence could cause harmful unintended |
|
1442 | 1442 | - See the [Argument Processing](http://cmd2.readthedocs.io/en/latest/argument_processing.html) |
1443 | 1443 | section of the documentation for more information on these decorators |
1444 | 1444 | - Alternatively, see the |
1445 | | - [argparse_example.py](https://github.com/python-cmd2/cmd2/blob/master/examples/argparse_example.py) |
1446 | | - and [arg_print.py](https://github.com/python-cmd2/cmd2/blob/master/examples/arg_print.py) |
| 1445 | + [argparse_example.py](https://github.com/python-cmd2/cmd2/blob/main/examples/argparse_example.py) |
| 1446 | + and [arg_print.py](https://github.com/python-cmd2/cmd2/blob/main/examples/arg_print.py) |
1447 | 1447 | examples |
1448 | 1448 | - Added support for Argparse subcommands when using the **with_argument_parser** or \* |
1449 | 1449 | \*with_argparser_and_unknown_args\*\* decorators |
1450 | 1450 | - See |
1451 | | - [subcommands.py](https://github.com/python-cmd2/cmd2/blob/master/examples/subcommands.py) |
| 1451 | + [subcommands.py](https://github.com/python-cmd2/cmd2/blob/main/examples/subcommands.py) |
1452 | 1452 | for an example of how to use subcommands |
1453 | 1453 | - Tab completion of subcommand names is automatically supported |
1454 | 1454 | - The **\_\_relative_load** command is now hidden from the help menu by default |
|
0 commit comments