Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Modified async_alert_str to also get passed the number of terminal columns ↵ | Todd Leonhardt | 2019-07-01 | 1 | -1/+3 |
| | | | | and added unit tests for it | ||||
* | Merge branch 'master' into colorama_encapsulation | Todd Leonhardt | 2019-06-30 | 1 | -11/+41 |
|\ | |||||
| * | Rewrote _redirect_complete to match our parsing behavior | Kevin Van Brunt | 2019-06-30 | 1 | -11/+41 |
| | | |||||
* | | Refactored ansi.async_alert_str() so that the cursor offset within the ↵ | Todd Leonhardt | 2019-06-30 | 1 | -2/+2 |
| | | | | | | | | | | | | readline buffer is passed in This way, the function is independent of readline and can more easily be unit tested | ||||
* | | Initial changes for encapsulation of colorama usage within ansi.py | Todd Leonhardt | 2019-06-30 | 1 | -54/+4 |
|/ | | | | | | | | | | | | | | | Changes include: - ansi.py is now the only cmd2 code which depends on colorama - cmd2 tests no longer rely on colorama - Added new functions to ansi.py: - async_alert_str() - set_title_str - Added unit test for set_title_str TODO: - Refactor async_alert_str so cursor position is passed in and import from rl_utils is no longer required - Add unit test(s) for async_alert_str - Refactor FG_COLORS and BG_COLORS in ansi.py to not use constants from colorama | ||||
* | Remove load, _relative_load, pyscript aliases which | Todd Leonhardt | 2019-06-29 | 1 | -59/+34 |
| | | | | | | These commands were renamed in the last release, but aliases were created along with warnings to help aid the transition. The command aliases are now being removed in this release. | ||||
* | Refactored allow_ansi setter | Kevin Van Brunt | 2019-06-29 | 1 | -4/+8 |
| | |||||
* | Always set the canonical version allow_ansi' string value | Kevin Van Brunt | 2019-06-29 | 1 | -2/+3 |
| | |||||
* | Handling alternate cases of allow_ansi values | Kevin Van Brunt | 2019-06-29 | 1 | -1/+1 |
| | |||||
* | Added validation when setting allow_ansi | Kevin Van Brunt | 2019-06-29 | 1 | -8/+18 |
| | |||||
* | Added unit tests | Kevin Van Brunt | 2019-06-27 | 1 | -1/+1 |
| | |||||
* | Updated documentation | Kevin Van Brunt | 2019-06-27 | 1 | -1/+1 |
| | |||||
* | Moved cmd2.Cmd._decolorized_write() to ansi.py and renamed it to ↵ | Kevin Van Brunt | 2019-06-27 | 1 | -19/+9 |
| | | | | ansi_aware_write(). | ||||
* | Made allow_ansi an application-wide setting and moved it to ansi.py | Kevin Van Brunt | 2019-06-27 | 1 | -15/+28 |
| | |||||
* | Renamed colors setting to allow_ansi | Kevin Van Brunt | 2019-06-26 | 1 | -5/+5 |
| | |||||
* | Changed default styles to use a more flexible approach which could be used ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -9/+9 |
| | | | | to call any function to add style | ||||
* | Changed signature of style() to allow for simpler calling and overriding of ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -4/+3 |
| | | | | settings in a provided TextStyle | ||||
* | Added TextStyle class and default implementations for various message types ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -22/+22 |
| | | | | 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 | -26/+25 |
| | |||||
* | Added bold and underline to style() | Kevin Van Brunt | 2019-06-26 | 1 | -5/+3 |
| | |||||
* | Removed unneeded (optional) text from docstrings | Kevin Van Brunt | 2019-06-26 | 1 | -21/+21 |
| | |||||
* | Renamed style_message to style | Kevin Van Brunt | 2019-06-26 | 1 | -8/+8 |
| | |||||
* | Changed perror and pexcept to handle already styled strings via a bool | Kevin Van Brunt | 2019-06-25 | 1 | -29/+31 |
| | |||||
* | Removed color args from poutput since the style function is going to do more ↵ | Kevin Van Brunt | 2019-06-25 | 1 | -19/+16 |
| | | | | than color | ||||
* | Removed end argument from style_message | Kevin Van Brunt | 2019-06-25 | 1 | -4/+4 |
| | |||||
* | Removed traceback_war flag from pexcept since it's a remnant of when perror ↵ | Kevin Van Brunt | 2019-06-25 | 1 | -11/+9 |
| | | | | handled both normal and exception-related messages | ||||
* | Replaced some pexcept uses with perror and updated documentation | Kevin Van Brunt | 2019-06-25 | 1 | -23/+20 |
| | |||||
* | Fix flake8 errors, don't use Style.RESET, fix docstring, change some ↵ | Daniel Ahn | 2019-06-24 | 1 | -46/+52 |
| | | | | pexcept() calls to perror() | ||||
* | Initial Commit for Issue 698 | xNinjaKittyx | 2019-06-24 | 1 | -84/+94 |
| | |||||
* | Made tokens_for_completion() method public since a couple of our examples use it | Todd Leonhardt | 2019-06-23 | 1 | -7/+7 |
| | |||||
* | Made last_result public and restored the initialization of it in __init__ ↵ | Todd Leonhardt | 2019-06-23 | 1 | -0/+4 |
| | | | | and associated comment | ||||
* | Restored a few attributes to be public | Todd Leonhardt | 2019-06-23 | 1 | -51/+51 |
| | |||||
* | Started refactoring transcript testing to have a better display of ↵ | Todd Leonhardt | 2019-06-16 | 1 | -1/+17 |
| | | | | information to the user | ||||
* | Fixed a few comments where "redirecting" accidentally got changed to ↵ | Todd Leonhardt | 2019-06-15 | 1 | -2/+2 |
| | | | | "_redirecting" | ||||
* | Updated CHANGELOG and made some more methods protected | Todd Leonhardt | 2019-06-15 | 1 | -18/+18 |
| | |||||
* | Made more methods protected | Todd Leonhardt | 2019-06-15 | 1 | -23/+23 |
| | |||||
* | Fix flake8 errors for continuation line under-indented after refactoring | Todd Leonhardt | 2019-06-15 | 1 | -6/+6 |
| | |||||
* | Began work to minimize public API | Todd Leonhardt | 2019-06-15 | 1 | -175/+135 |
| | |||||
* | Fix unit test failures I introduced in last commit | Todd Leonhardt | 2019-06-15 | 1 | -39/+41 |
| | |||||
* | Print warnings at end of load or pyscript instead of beginning | Todd Leonhardt | 2019-06-15 | 1 | -12/+10 |
| | | | | This is in case the user runs a long script - I don't want the warning to quickly scroll off the screen where they then never see it. | ||||
* | Fixing unit tests | Kevin Van Brunt | 2019-06-15 | 1 | -0/+5 |
| | |||||
* | Fixing unit tests | Kevin Van Brunt | 2019-06-15 | 1 | -1/+1 |
| | |||||
* | Renamed pyscript to run_pyscript | Kevin Van Brunt | 2019-06-14 | 1 | -7/+15 |
| | |||||
* | Renamed load to run_script and _relative_load to _relative_run_script | Kevin Van Brunt | 2019-06-14 | 1 | -33/+48 |
| | |||||
* | Merge branch 'master' into deprecate_34 | Todd Leonhardt | 2019-06-14 | 1 | -6/+12 |
|\ | |||||
| * | Merge branch 'master' into history_fixes | Kevin Van Brunt | 2019-06-14 | 1 | -157/+144 |
| |\ | |||||
| * | | Adding individual lines of commands to readline history to match how it was ↵ | Kevin Van Brunt | 2019-06-14 | 1 | -5/+7 |
| | | | | | | | | | | | | entered | ||||
| * | | Fixed issue where input line was being saved before all of a multiline ↵ | Kevin Van Brunt | 2019-06-14 | 1 | -2/+6 |
| | | | | | | | | | | | | command had been fully read | ||||
| * | | Fix history display issues | Todd Leonhardt | 2019-06-13 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issues were two fold: - HistoryItem statement.raw was getting mangled for multiline commands due to macro-related changes in _input_line_to_statement() - HistoryItem pretty printing wasn't using rstrip() anymore in verbose mode I added a couple unit tests in the process of getting here. But we should add some explicit unit tests of _input_line_to_statement() for cases like: - basic single-line command - macro single-line command - multiline command | ||||
* | | | Deprecate support for Python 3.4 and begin testing with Python 3.8 beta | Todd Leonhardt | 2019-06-14 | 1 | -6/+1 |
| |/ |/| |