summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fixed issue in ansi.async_alert_str() which would raise IndexError if prompt ↵blank_promptKevin Van Brunt2022-01-122-1/+3
| | | | was blank.
* Added 'no cover' pragma to importKevin Van Brunt2021-12-151-1/+1
|
* Simplified importKevin Van Brunt2021-12-151-12/+3
|
* Added broader exception handling when enabling clipboard functionality via ↵Kevin Van Brunt2021-12-153-7/+13
| | | | pyperclip.
* Updated change log for release2.3.3Kevin Van Brunt2021-11-291-1/+1
|
* Added clearer exception handling to BorderedTable and SimpleTableKevin Van Brunt2021-11-243-2/+36
|
* Fixed issue where a ns_provider could be passed None instead of its correct ↵2.3.2Kevin Van Brunt2021-11-224-5/+51
| | | | cmd2.Cmd or CommandSet value.
* Updated docstring2.3.1Kevin Van Brunt2021-11-181-2/+3
|
* Added unit tests for right-aligned numbers in completion hint tablesKevin Van Brunt2021-11-182-24/+51
|
* ArgparseCompleter now sorts CompletionItems created with numerical values as ↵Kevin Van Brunt2021-11-186-77/+122
| | | | | | | | | 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 choicesKevin Van Brunt2021-11-184-8/+118
|
* Upgraded change logKevin Van Brunt2021-11-121-0/+4
|
* Updated change log2.3.0Kevin Van Brunt2021-11-112-2/+2
|
* Updated unit testsKevin Van Brunt2021-11-111-1/+5
|
* Updated CommandSet unit testsKevin Van Brunt2021-11-111-48/+66
|
* Added ability to set border background color on BorderTables and ↵Kevin Van Brunt2021-11-103-78/+144
| | | | AlternatingTables
* Updated change logKevin Van Brunt2021-11-091-3/+4
|
* Added type checks to ansi.style()Kevin Van Brunt2021-10-272-1/+17
|
* Updated table example.Kevin Van Brunt2021-10-263-79/+92
| | | | | | Renamed Column settings: override_header_style -> style_header_text override_data_style -> style_data_text
* Added ability to colorize all aspects of SimpleTablesKevin Van Brunt2021-10-254-64/+266
|
* Added unit test for Cmd.select() return valuesKevin Van Brunt2021-10-252-0/+40
|
* Fixed regression in Cmd.select converting "Any" type argument to stringBenjamin George Roberts2021-10-251-2/+2
|
* Added ability to colorize all aspects of BorderedTables and AlternatingTables.Kevin Van Brunt2021-10-197-147/+239
| | | | Refactored utils.align_text() to print less fill_char style characters.
* Upgrade CI build systems to use Python 3.10 (#1151)Todd Leonhardt2021-10-197-36/+10
| | | | | | | | | | * Upgrade CI build systems to use Python 3.10 Changes include: - Switch Azure Pipelines to use Python 3.10 instead of 3.6 - Switch GitHub Actions to use Python 3.10 instead of 3.10b2 for main CI - Switch GitHub Actions to use Python 3.10 instead of 3.9 for all auxilliary CI * Fix nox file
* Added support for 8-bit/256-colors with the cmd2.EightBitFg and ↵Kevin Van Brunt2021-10-1829-606/+1373
| | | | | | | | | | | | | | 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 Brunt2021-10-133-13/+71
| | | | | | | | | | 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.
* Fixed AttributeError in rl_get_prompt() when prompt is None.Kevin Van Brunt2021-10-113-26/+22
|
* Updated thread nameKevin Van Brunt2021-09-241-1/+1
|
* Updated change log for 2.2.0 release2.2.0Kevin Van Brunt2021-09-141-1/+1
|
* Updated async_alert() to account for self.prompt not matching Readline's ↵Kevin Van Brunt2021-09-144-51/+87
| | | | current prompt.
* Updated change logKevin Van Brunt2021-09-081-1/+2
|
* Fixed example codeKevin Van Brunt2021-09-071-2/+5
|
* Argparse tab completer will complete remaining flag names if there are no ↵Kevin Van Brunt2021-09-073-3/+19
| | | | more positionals to complete.
* Updating docsKevin Van Brunt2021-09-012-0/+6
|
* Added cmd2.Cmd method to determine what ArgparseCompleter type to useKevin Van Brunt2021-09-012-21/+22
|
* Added ap_completer_type arg to Cmd2ArgumentParser.__init__().Kevin Van Brunt2021-09-014-29/+163
| | | | Added unit tests for custom ArgparseCompleter
* Refactored custom ArgparseCompleter functionality so they will now be set ↵Kevin Van Brunt2021-09-0110-61/+131
| | | | | | 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 Brunt2021-08-251-9/+54
|
* Added self.last_result unit tests for run_script, _relative_run_script, and ↵Kevin Van Brunt2021-08-252-1/+34
| | | | set commands.
* Fixed extra space appended to each alias by "alias list" command.Kevin Van Brunt2021-08-254-8/+71
| | | | Added self.last_result unit tests for alias, edit, eof, help, macro, quit, shortcuts, and run_pyscript commands.
* Updated documentationKevin Van Brunt2021-08-231-1/+1
|
* All cmd2 built-in commands now populate self.last_resultKevin Van Brunt2021-08-233-8/+68
|
* Merge pull request #1133 from python-cmd2/topic_widthKevin Van Brunt2021-08-2314-172/+304
|\ | | | | Updated some commands to use SimpleTable in their output
| * Merge branch 'master' into topic_widthKevin Van Brunt2021-08-2312-65/+257
| |\ | |/ |/|
* | Removed DEFAULT_ARGUMENT_PARSER and DEFAULT_COMMAND_COMPLETER from __init.py__Kevin Van Brunt2021-08-232-12/+7
| |
* | Updated documentation for setting custom parsersKevin Van Brunt2021-08-233-3/+8
| |
* | Applied black formatEric Lin2021-08-234-8/+14
| |
* | * New function `set_default_command_completer_type()` allows developer to ↵Eric Lin2021-08-2310-43/+230
| | | | | | | | | | | | | | | | | | 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.
| * Updated documentationtopic_widthKevin Van Brunt2021-08-191-0/+1
| |
| * Merge branch 'master' into topic_widthKevin Van Brunt2021-08-192-25/+2
| |\ | |/ |/|