Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Increased code coverage | Kevin Van Brunt | 2019-01-24 | 1 | -1/+1 |
| | |||||
* | Fix flake8 issues | Todd Leonhardt | 2018-12-06 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | This commit contains a very large number of trivial changes in order to fix flake8 errors and warnings. Predominantly these are whitespace changes. Additionally, the build for Python 3.7 on TravisCI has been tweaked to fail if there are any flake8 errors using the following commandline: * flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics NOTE: In the future the max cyclomatic complexity should be lowered, but some improvements need to be made first. One flake8 error is being ignored entirely: * E252 missing whitespace around parameter equals * ignored because it doesn't correctly deal with default argument values after a type hint A few flake8 errors are being selectively ignored in certain files: * C901 fuction is too complex * ignored in argparse_completer.py because the complex code is an override of argparse complexity * E302 expected 2 blank lines after ... * ignored in all unit test files for convenience * F401 module imported but unused * ignored in cmd2/__init__.py because imports are for convenience of cmd2 developers and backwards compatibility * F821 undefined name * ignored in cmd2 script files which are intended to run only within cmd2 applications via pyscript where "app" and "cmd" are defined | ||||
* | Renamed display_width to ansi_safe_wcswidth | Kevin Van Brunt | 2018-11-16 | 1 | -2/+2 |
| | |||||
* | Added wrapper for wcswidth that removes ansi escape characters | Kevin Van Brunt | 2018-11-15 | 1 | -0/+5 |
| | |||||
* | Added additional unit test for StdSim | Todd Leonhardt | 2018-10-09 | 1 | -0/+12 |
| | |||||
* | Added unit tests for new methods of StdSim | Todd Leonhardt | 2018-10-03 | 1 | -0/+10 |
| | |||||
* | Added a couple more unit tests for StdStim | Todd Leonhardt | 2018-09-24 | 1 | -0/+12 |
| | |||||
* | StdSim write methods now raise a TypeError exception if passed the wrong type | Todd Leonhardt | 2018-09-24 | 1 | -1/+44 |
| | | | | | Also: - Added explicit unit tests for StdSim to test_utils.py | ||||
* | Added unit tests for new utility functions and fixed a comment | Todd Leonhardt | 2018-09-21 | 1 | -0/+35 |
| | |||||
* | Add natural sorting (sorting case insensitively as well as numerically) | Lance Starr | 2018-09-19 | 1 | -2/+28 |
| |