Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Deprecate support for Python 3.6 and remove dependency on attrs (#1257) | Todd Leonhardt | 2023-01-31 | 1 | -8/+3 |
| | | | | | | | | | | | | | * 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> | ||||
* | 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 | ||||
* | Reduced amount of style characters carried over from previous lines when ↵ | Kevin Van Brunt | 2022-02-22 | 1 | -15/+142 |
| | | | | | | | 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). | ||||
* | Added ability to colorize all aspects of BorderedTables and AlternatingTables. | Kevin Van Brunt | 2021-10-19 | 1 | -13/+13 |
| | | | | 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 | 1 | -20/+23 |
| | | | | | | | | | | | | | | 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. | ||||
* | Add in isort changes | Todd Leonhardt | 2021-01-31 | 1 | -5/+16 |
| | |||||
* | Add black for automatic code format | Todd Leonhardt | 2021-01-31 | 1 | -11/+75 |
| | |||||
* | Changed isort to force wrapping of imports to reduce merge conflicts from ↵ | Eric Lin | 2021-01-22 | 1 | -2/+5 |
| | | | | minor import changes. | ||||
* | Fix unit test that was failing when EDITOR environment variable was seteditors | Todd Leonhardt | 2020-11-21 | 1 | -2/+2 |
| | |||||
* | Updated utils.find_editor() to include more Windows editors | Kevin Van Brunt | 2020-11-19 | 1 | -49/+12 |
| | |||||
* | feat(utils): probe editors in system path | Mikhail Ushanov | 2020-11-17 | 1 | -0/+59 |
| | | | | Signed-off-by: Mikhail Ushanov <gm.mephisto@gmail.com> | ||||
* | Minor type hinting fixes. | Eric Lin | 2020-09-11 | 1 | -0/+7 |
| | |||||
* | Initial commit of table creation API | Kevin Van Brunt | 2020-04-09 | 1 | -5/+40 |
| | |||||
* | Allowing for colored fill char in align_text | Kevin Van Brunt | 2020-02-11 | 1 | -1/+10 |
| | | | | Added function to index all style sequences found in a string | ||||
* | Fixed bug where ANSI style sequences were not correctly handled in ↵ | Kevin Van Brunt | 2020-02-11 | 1 | -6/+37 |
| | | | | utils.truncate_line() | ||||
* | Added remove_settable() since cmd2 has add_settable() | Kevin Van Brunt | 2020-02-05 | 1 | -0/+2 |
| | | | | Documented Settable.onchange_cb | ||||
* | Fixed a bug in a very unusual case and added some unit tests | Todd Leonhardt | 2020-02-04 | 1 | -0/+19 |
| | |||||
* | Updating unit tests and docs | Kevin Van Brunt | 2020-01-20 | 1 | -0/+15 |
| | |||||
* | Renamed function | Kevin Van Brunt | 2020-01-17 | 1 | -15/+15 |
| | |||||
* | Updating unit tests | Kevin Van Brunt | 2020-01-17 | 1 | -1/+38 |
| | |||||
* | Updating unit tests | Kevin Van Brunt | 2020-01-17 | 1 | -10/+17 |
| | |||||
* | Renamed ansi_safe_wcswidth() to style_aware_wcswidth() | Kevin Van Brunt | 2019-12-19 | 1 | -1/+1 |
| | | | | Renamed ansi_aware_write() to style_aware_write() | ||||
* | Renamed functions based on code review comments. Fixed Python warnings. | Kevin Van Brunt | 2019-12-09 | 1 | -32/+32 |
| | |||||
* | Added more unit tests for text alignment | Kevin Van Brunt | 2019-12-09 | 1 | -10/+28 |
| | |||||
* | Added more text alignment unit tests | Kevin Van Brunt | 2019-12-09 | 1 | -1/+8 |
| | |||||
* | Adding unit tests for text alignment functions | Kevin Van Brunt | 2019-12-09 | 1 | -16/+152 |
| | |||||
* | Updated center_text to support ansi escape sequences and characters with ↵ | Kevin Van Brunt | 2019-12-09 | 1 | -14/+11 |
| | | | | | | display widths greater than 1. Also added left and right justification functions. | ||||
* | Fixed bug where pipe processes were not being stopped by Ctrl-C on Windows | Kevin Van Brunt | 2019-11-18 | 1 | -9/+22 |
| | |||||
* | Put an end time for timeout command just as a precaution | Kevin Van Brunt | 2019-11-12 | 1 | -2/+2 |
| | |||||
* | Fixing unit tests that were causing problems on the test servers | Kevin Van Brunt | 2019-11-12 | 1 | -13/+4 |
| | |||||
* | Fixing Windows unit test that hangs on AppVeyor due to a KeyboardInterrupt | Kevin Van Brunt | 2019-11-12 | 1 | -2/+13 |
| | |||||
* | Added unit tests | Kevin Van Brunt | 2019-07-24 | 1 | -0/+10 |
| | |||||
* | Fixed a few commands that would have failed if arguments containing quotes ↵ | Kevin Van Brunt | 2019-07-24 | 1 | -1/+1 |
| | | | | were used | ||||
* | Skipping unit test on non-Windows because of unreliable behavior on TravisCI ↵ | Kevin Van Brunt | 2019-07-16 | 1 | -1/+2 |
| | | | | and Azure DevOps platforms | ||||
* | Moved RESET to end of color dictionaries and skip a test on Mac since it is ↵ | Todd Leonhardt | 2019-06-28 | 1 | -1/+2 |
| | | | | unreliable on Azure DevOps CI | ||||
* | Added unit tests for ansi.py | Kevin Van Brunt | 2019-06-27 | 1 | -32/+0 |
| | |||||
* | Changed signature of style() to allow for simpler calling and overriding of ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -3/+3 |
| | | | | settings in a provided TextStyle | ||||
* | Added TextStyle class and default implementations for various message types ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -3/+3 |
| | | | | like Warning, Error, and Succes | ||||
* | Moved code related to ANSI escape codes to new file called ansi.py | Kevin Van Brunt | 2019-06-26 | 1 | -5/+6 |
| | |||||
* | Renamed style_message to style | Kevin Van Brunt | 2019-06-26 | 1 | -5/+5 |
| | |||||
* | Removed end argument from style_message | Kevin Van Brunt | 2019-06-25 | 1 | -2/+2 |
| | |||||
* | Add 2 tests to test_utils.py for style_message() | Daniel Ahn | 2019-06-25 | 1 | -1/+20 |
| | |||||
* | Added center_text() utility function for centering text in a terminal along ↵ | Todd Leonhardt | 2019-06-16 | 1 | -0/+23 |
| | | | | | | with unit tests for it This function isn't used yet, but I have plans to use it when improving the output of transcript testing | ||||
* | Removed copyright headers from source files and updated LICENSE with current ↵ | Kevin Van Brunt | 2019-06-07 | 1 | -3/+0 |
| | | | | year | ||||
* | Added unit test | Kevin Van Brunt | 2019-04-25 | 1 | -11/+20 |
| | |||||
* | Attempt to fix unit tests | Todd Leonhardt | 2019-04-02 | 1 | -0/+3 |
| | |||||
* | Added some unit tests for ProcReader and ContextFlag utility classes | Todd Leonhardt | 2019-04-02 | 1 | -0/+51 |
| | |||||
* | Replaced StdSim.__store_output with StdSim.pause_storage | Kevin Van Brunt | 2019-03-09 | 1 | -0/+22 |
| |