summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update changelog in preparation for next release0.9.14Todd Leonhardt2019-06-291-1/+1
|
* Merge pull request #704 from python-cmd2/feature/revisit-color-supportTodd Leonhardt2019-06-2928-509/+703
|\ | | | | #698 - Revisiting Color Support
| * Refactored allow_ansi setterKevin Van Brunt2019-06-291-4/+8
| |
| * Always set the canonical version allow_ansi' string valueKevin Van Brunt2019-06-292-11/+19
| |
| * Handling alternate cases of allow_ansi valuesKevin Van Brunt2019-06-292-1/+4
| |
| * Added validation when setting allow_ansiKevin Van Brunt2019-06-292-8/+32
| |
| * Updated CHANGELOG with more details on breaking changes to poutput and perrorTodd Leonhardt2019-06-292-3/+10
| | | | | | | | | | Also: - Updated README with more info on a couple more open-source applications using cmd2
| * Minor fix to docstring of ansi.style()Todd Leonhardt2019-06-281-2/+2
| |
| * Updated color examples to support bold and underline optionsTodd Leonhardt2019-06-282-2/+6
| |
| * Updated Sphinx documentation and README.mdTodd Leonhardt2019-06-283-14/+15
| |
| * Improve background color display of prompt in async_printing.py exampleTodd Leonhardt2019-06-281-1/+1
| |
| * Moved RESET to end of color dictionaries and skip a test on Mac since it is ↵Todd Leonhardt2019-06-282-3/+4
| | | | | | | | unreliable on Azure DevOps CI
| * Simplified ansi color dictionaries and lookup methodsTodd Leonhardt2019-06-278-221/+92
| | | | | | | | | | | | | | Also: - Updated examples that use color to use cmd2.ansi instead of colorama - Updated tests that use color to use cmd2.ansi instead of colorama - plumbum_colorspy example shows how to override color lookup functions to use a different color library
| * Added fg_lookup() and bg_lookup() two-stage color lookup functionsTodd Leonhardt2019-06-272-28/+89
| |
| * Added unit testsKevin Van Brunt2019-06-272-8/+21
| |
| * Updated documentationKevin Van Brunt2019-06-272-1/+19
| |
| * Added unit tests for ansi.pyKevin Van Brunt2019-06-273-34/+73
| |
| * Moved cmd2.Cmd._decolorized_write() to ansi.py and renamed it to ↵Kevin Van Brunt2019-06-273-26/+36
| | | | | | | | ansi_aware_write().
| * Made allow_ansi an application-wide setting and moved it to ansi.pyKevin Van Brunt2019-06-274-34/+46
| |
| * More replacing of 'colors' with 'allow_ansi'Kevin Van Brunt2019-06-264-8/+8
| |
| * Renamed colors setting to allow_ansiKevin Van Brunt2019-06-266-49/+49
| |
| * Updated documentationKevin Van Brunt2019-06-261-2/+4
| |
| * Changed default styles to use a more flexible approach which could be used ↵Kevin Van Brunt2019-06-263-60/+24
| | | | | | | | to call any function to add style
| * Changed signature of style() to allow for simpler calling and overriding of ↵Kevin Van Brunt2019-06-265-22/+48
| | | | | | | | settings in a provided TextStyle
| * Combined some logic in styleKevin Van Brunt2019-06-261-20/+23
| |
| * Added TextStyle class and default implementations for various message types ↵Kevin Van Brunt2019-06-266-50/+70
| | | | | | | | like Warning, Error, and Succes
| * Moved code related to ANSI escape codes to new file called ansi.pyKevin Van Brunt2019-06-269-178/+173
| |
| * Added bold and underline to style()Kevin Van Brunt2019-06-263-9/+29
| |
| * Removed unneeded (optional) text from docstringsKevin Van Brunt2019-06-264-32/+32
| |
| * Renamed style_message to styleKevin Van Brunt2019-06-265-21/+21
| |
| * Changed perror and pexcept to handle already styled strings via a boolKevin Van Brunt2019-06-251-29/+31
| |
| * Removed color args from poutput since the style function is going to do more ↵Kevin Van Brunt2019-06-253-37/+22
| | | | | | | | than color
| * Removed end argument from style_messageKevin Van Brunt2019-06-253-9/+7
| |
| * Removed traceback_war flag from pexcept since it's a remnant of when perror ↵Kevin Van Brunt2019-06-251-11/+9
| | | | | | | | handled both normal and exception-related messages
| * Replaced more pexcept uses with perrorKevin Van Brunt2019-06-254-12/+12
| |
| * Replaced some pexcept uses with perror and updated documentationKevin Van Brunt2019-06-251-23/+20
| |
| * Add 2 tests to test_utils.py for style_message()Daniel Ahn2019-06-251-1/+20
| |
| * Fix verbose history tests and behaviorTodd Leonhardt2019-06-241-1/+1
| |
| * Revert change in test_poutput_color_alwaysDaniel Ahn2019-06-241-1/+1
| |
| * Fix flake8 errors, don't use Style.RESET, fix docstring, change some ↵Daniel Ahn2019-06-243-50/+56
| | | | | | | | pexcept() calls to perror()
| * Initial Commit for Issue 698xNinjaKittyx2019-06-248-104/+187
|/
* Merge pull request #703 from python-cmd2/public_apiTodd Leonhardt2019-06-2327-381/+349
|\ | | | | Minimize public API of cmd2.Cmd class
| * Made tokens_for_completion() method public since a couple of our examples use itTodd Leonhardt2019-06-233-15/+15
| |
| * Made last_result public and restored the initialization of it in __init__ ↵Todd Leonhardt2019-06-236-22/+26
| | | | | | | | and associated comment
| * Restored a few attributes to be publicTodd Leonhardt2019-06-236-109/+109
| |
| * Updated CHANGELOG and slightly refactored/reorganized comments and code in ↵Todd Leonhardt2019-06-162-18/+19
| | | | | | | | transcript.py
| * Started refactoring transcript testing to have a better display of ↵Todd Leonhardt2019-06-161-1/+17
| | | | | | | | information to the user
| * Added center_text() utility function for centering text in a terminal along ↵Todd Leonhardt2019-06-162-0/+39
| | | | | | | | | | | | 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
| * Fixed a bunch of examples which were broken due to moving DEFAULT_SHORTCUTS ↵Todd Leonhardt2019-06-1610-9/+10
| | | | | | | | from cmd2.py to constants.py
| * Modified a transcript used during testing to not run help so that it doesn't ↵Todd Leonhardt2019-06-151-15/+6
| | | | | | | | | | | | need to be changed any time the content of help changes Now the only test which should need to change when a command is added, deleted, or renamed (which isn't specifically related to that command) is test_get_all_commands