Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'master' into clipboard | kotfu | 2023-02-01 | 4 | -13/+7 |
|\ | | | | | | | | | # Conflicts: # CHANGELOG.md | ||||
| * | Deprecate support for Python 3.6 and remove dependency on attrs (#1257) | Todd Leonhardt | 2023-01-31 | 4 | -13/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Start deprecation of Python 3.6 * Removed dependency on attrs and replaced with dataclasses * Fix typing * Added comments to assist with dropping support of Python versions in the future. --------- Co-authored-by: Kevin Van Brunt <kmvanbrunt@gmail.com> | ||||
* | | Add documentation for allow_clipboard attribute | kotfu | 2023-01-30 | 1 | -3/+8 |
| | | |||||
* | | Add allow_clipboard for #1225 | kotfu | 2023-01-28 | 1 | -15/+43 |
|/ | |||||
* | Fixed ValueError caused when passing Cmd.columnize() strings wider than ↵ | Kevin Van Brunt | 2023-01-27 | 1 | -1/+10 |
| | | | | display_width. | ||||
* | Clean up spacing | kotfu | 2022-11-05 | 1 | -1/+1 |
| | |||||
* | Add tests for to_bool() when passing boolean values | kotfu | 2022-11-05 | 1 | -0/+5 |
| | |||||
* | Enhance str_to_bool() to accept other types | kotfu | 2022-11-05 | 1 | -15/+23 |
| | | | | | - Rename str_to_bool() -> to_bool() - Enhance to_bool() so that it accepts and converts bool, int, and float in addition to str | ||||
* | Fixed duplicate subparser name in test_add_parser_custom_completer | Michał Górny | 2022-05-23 | 1 | -1/+1 |
| | | | | | | | | If I'm not mistaken, the use of the same name for both subparsers was not intentional but a typo. In Python 3.11, this is an error and causes the test to fail. Fixes #1228 | ||||
* | Moved documentation annotation stripping into utility function. Changed ↵ | Eric Lin | 2022-04-25 | 1 | -2/+11 |
| | | | | argparse decorator to automatically strip annotations. | ||||
* | Fix test suite ansi.allow_style handling (#1217) | Jakub Kulík | 2022-04-13 | 1 | -17/+36 |
| | | | | | * Fix test suite ansi.allow_style handling * Make black happy | ||||
* | Fixed type hint in unit test code2.4.0 | Kevin Van Brunt | 2022-02-22 | 1 | -2/+3 |
| | |||||
* | Reduced amount of style characters carried over from previous lines when ↵ | Kevin Van Brunt | 2022-02-22 | 2 | -15/+186 |
| | | | | | | | aligning text. Also reduced amount of style characters appended to truncated text. These changes were made to reduce memory usage in certain use cases of tables (e.g. nested colored tables). | ||||
* | cmd2 now uses pyreadline3 when running any version of Python on Windows | Kevin Van Brunt | 2022-02-17 | 2 | -24/+3 |
| | |||||
* | Deleted cmd2.fg and cmd2.bg which were deprecated in 2.3.0. Use cmd2.Fg and ↵ | Kevin Van Brunt | 2022-02-17 | 1 | -2/+0 |
| | | | | cmd2.Bg instead. | ||||
* | Added clearer exception handling to BorderedTable and SimpleTable | Kevin Van Brunt | 2021-11-24 | 1 | -1/+23 |
| | |||||
* | Added unit tests for right-aligned numbers in completion hint tables | Kevin Van Brunt | 2021-11-18 | 1 | -22/+49 |
| | |||||
* | ArgparseCompleter now sorts CompletionItems created with numerical values as ↵ | Kevin Van Brunt | 2021-11-18 | 2 | -44/+53 |
| | | | | | | | | | numbers. Completion hint tables now right-align the left column if the hints have a numerical type. Fixed issue introduced in 2.3.0 with AlternatingTable, BorderedTable, and SimpleTable that caused header alignment settings to be overridden by data alignment settings. | ||||
* | Added ability to use CompletionItems as argparse choices | Kevin Van Brunt | 2021-11-18 | 2 | -1/+56 |
| | |||||
* | Added ability to set border background color on BorderTables and ↵ | Kevin Van Brunt | 2021-11-10 | 1 | -27/+28 |
| | | | | AlternatingTables | ||||
* | Added type checks to ansi.style() | Kevin Van Brunt | 2021-10-27 | 1 | -1/+11 |
| | |||||
* | Updated table example. | Kevin Van Brunt | 2021-10-26 | 1 | -15/+15 |
| | | | | | | Renamed Column settings: override_header_style -> style_header_text override_data_style -> style_data_text | ||||
* | Added ability to colorize all aspects of SimpleTables | Kevin Van Brunt | 2021-10-25 | 1 | -15/+38 |
| | |||||
* | Added unit test for Cmd.select() return values | Kevin Van Brunt | 2021-10-25 | 1 | -0/+38 |
| | |||||
* | Added ability to colorize all aspects of BorderedTables and AlternatingTables. | Kevin Van Brunt | 2021-10-19 | 2 | -41/+69 |
| | | | | Refactored utils.align_text() to print less fill_char style characters. | ||||
* | Added support for 8-bit/256-colors with the cmd2.EightBitFg and ↵ | Kevin Van Brunt | 2021-10-18 | 7 | -160/+270 |
| | | | | | | | | | | | | | | cmd2.EightBitBg classes. Added support for 24-bit/RGB colors with the cmd2.RgbFg and cmd2.RgbBg classes. Removed dependency on colorama. Deprecated cmd2.fg. Use cmd2.Fg instead. Deprecated cmd2.bg. Use cmd2.Bg instead. Changed type of ansi.allow_style from a string to an ansi.AllowStyle Enum class. Fixed bug where using choices on a Settable didn't verify that a valid choice had been entered. | ||||
* | Added settings to Column class which prevent a table from overriding ↵ | Kevin Van Brunt | 2021-10-13 | 1 | -6/+33 |
| | | | | | | | | | | existing styles in header and/or data text. These were added to support nesting an AlternatingTable within an AlternatingTable, but other custom table classes can also use these settings. AlternatingTable no longer applies background color to outer borders. This was done to improve appearance since the background color extended beyond the borders of the table. | ||||
* | Updated async_alert() to account for self.prompt not matching Readline's ↵ | Kevin Van Brunt | 2021-09-14 | 1 | -21/+16 |
| | | | | current prompt. | ||||
* | Argparse tab completer will complete remaining flag names if there are no ↵ | Kevin Van Brunt | 2021-09-07 | 1 | -0/+14 |
| | | | | more positionals to complete. | ||||
* | Added ap_completer_type arg to Cmd2ArgumentParser.__init__(). | Kevin Van Brunt | 2021-09-01 | 1 | -28/+149 |
| | | | | Added unit tests for custom ArgparseCompleter | ||||
* | Refactored custom ArgparseCompleter functionality so they will now be set ↵ | Kevin Van Brunt | 2021-09-01 | 1 | -2/+2 |
| | | | | | | using methods on ArgumentParser objects. This fixes issue where subcommands did not use the correct custom ArgparseCompleter type. | ||||
* | Added self.last_result unit tests for the history command. | Kevin Van Brunt | 2021-08-25 | 1 | -9/+54 |
| | |||||
* | Added self.last_result unit tests for run_script, _relative_run_script, and ↵ | Kevin Van Brunt | 2021-08-25 | 1 | -1/+33 |
| | | | | set commands. | ||||
* | Fixed extra space appended to each alias by "alias list" command. | Kevin Van Brunt | 2021-08-25 | 2 | -2/+61 |
| | | | | Added self.last_result unit tests for alias, edit, eof, help, macro, quit, shortcuts, and run_pyscript commands. | ||||
* | Merge branch 'master' into topic_width | Kevin Van Brunt | 2021-08-23 | 2 | -6/+57 |
|\ | |||||
| * | Removed DEFAULT_ARGUMENT_PARSER and DEFAULT_COMMAND_COMPLETER from __init.py__ | Kevin Van Brunt | 2021-08-23 | 1 | -6/+4 |
| | | |||||
| * | Applied black format | Eric Lin | 2021-08-23 | 1 | -1/+2 |
| | | |||||
| * | * New function `set_default_command_completer_type()` allows developer to ↵ | Eric Lin | 2021-08-23 | 1 | -0/+52 |
| | | | | | | | | | | | | | | | | | | extend and modify the behavior of `ArgparseCompleter`. * New function `register_argparse_argument_parameter()` allows developers to specify custom parameters to be passed to the argparse parser's `add_argument()` method. These parameters will become accessible in the resulting argparse Action object when modifying `ArgparseCompleter` behavior. | ||||
* | | set command output now uses SimpleTable. | Kevin Van Brunt | 2021-08-19 | 5 | -61/+88 |
|/ | | | | | | | Tabled tab completion now includes divider row. Tab completion results for aliases, macros, and Settables wrap long fields. SimpleTable now accepts blank for the divider character. It is identical to passing None. Removed --verbose flag from set command so the descriptions always show. | ||||
* | Fixing tests on Python 3.10 | Kevin Van Brunt | 2021-06-17 | 5 | -35/+33 |
| | |||||
* | Removed obsolete unit test | Kevin Van Brunt | 2021-06-14 | 1 | -27/+2 |
| | |||||
* | Added unit tests for History and Statement | Kevin Van Brunt | 2021-06-14 | 2 | -0/+118 |
| | |||||
* | Merge branch 'master' into make-run_editor-public | Todd Leonhardt | 2021-05-24 | 1 | -1/+1 |
|\ | |||||
| * | do_eof() now just calls the quit function | Kevin Van Brunt | 2021-05-17 | 1 | -1/+1 |
| | | |||||
* | | Make _run_editor() public | Simon J. Rowe | 2021-05-14 | 1 | -3/+3 |
|/ | |||||
* | Removed cmd2.Cmd.quit_on_sigint. | Kevin Van Brunt | 2021-04-30 | 1 | -25/+2 |
| | |||||
* | Stopping a shell command with Ctrl-C now raises a KeyboardInterrupt to ↵ | Kevin Van Brunt | 2021-04-30 | 1 | -0/+17 |
| | | | | | | support stopping a text script which ran the shell command. On POSIX systems, shell commands and processes being piped to are now run in the user's preferred shell instead of /bin/sh. | ||||
* | Changed default behavior of runcmds_plus_hooks() to not stop when Ctrl-C is ↵ | Kevin Van Brunt | 2021-04-30 | 1 | -7/+7 |
| | | | | pressed and instead run the next command in its list. | ||||
* | Renamed silent_startup_script to silence_startup_script for clarity | Kevin Van Brunt | 2021-04-28 | 1 | -4/+4 |
| | |||||
* | Style changes from running black on Python 3.9 | Kevin Van Brunt | 2021-04-27 | 3 | -3/+3 |
| |