summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch 'master' into auto_completer_refactorKevin Van Brunt2019-07-031-1/+1
|\ \ | |/
| * Fixed issue where wrong function was being set for Pyreadline's ↵Kevin Van Brunt2019-07-031-1/+1
| | | | | | | | _display_completions
* | Patched argparse._ActionsContainer.add_argument() to support more settings ↵Kevin Van Brunt2019-07-021-52/+36
| | | | | | | | like enabling tab completion and providing choice generating functions
* | Added functions to enable tab completion and choices provider functions to ↵Kevin Van Brunt2019-07-021-55/+56
| | | | | | | | argparse argument values
* | Removed cmd2.basic_complete function since it was added to utilsKevin Van Brunt2019-07-021-15/+0
| |
* | Moved basic_complete to utilsKevin Van Brunt2019-07-021-6/+6
| |
* | Small refactor and documentation updatesKevin Van Brunt2019-07-011-4/+0
|/
* Modified async_alert_str to also get passed the number of terminal columns ↵Todd Leonhardt2019-07-011-1/+3
| | | | and added unit tests for it
* Merge branch 'master' into colorama_encapsulationTodd Leonhardt2019-06-301-11/+41
|\
| * Rewrote _redirect_complete to match our parsing behaviorKevin Van Brunt2019-06-301-11/+41
| |
* | Refactored ansi.async_alert_str() so that the cursor offset within the ↵Todd Leonhardt2019-06-301-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.pyTodd Leonhardt2019-06-301-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 whichTodd Leonhardt2019-06-291-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 setterKevin Van Brunt2019-06-291-4/+8
|
* Always set the canonical version allow_ansi' string valueKevin Van Brunt2019-06-291-2/+3
|
* Handling alternate cases of allow_ansi valuesKevin Van Brunt2019-06-291-1/+1
|
* Added validation when setting allow_ansiKevin Van Brunt2019-06-291-8/+18
|
* Added unit testsKevin Van Brunt2019-06-271-1/+1
|
* Updated documentationKevin Van Brunt2019-06-271-1/+1
|
* Moved cmd2.Cmd._decolorized_write() to ansi.py and renamed it to ↵Kevin Van Brunt2019-06-271-19/+9
| | | | ansi_aware_write().
* Made allow_ansi an application-wide setting and moved it to ansi.pyKevin Van Brunt2019-06-271-15/+28
|
* Renamed colors setting to allow_ansiKevin Van Brunt2019-06-261-5/+5
|
* Changed default styles to use a more flexible approach which could be used ↵Kevin Van Brunt2019-06-261-9/+9
| | | | to call any function to add style
* Changed signature of style() to allow for simpler calling and overriding of ↵Kevin Van Brunt2019-06-261-4/+3
| | | | settings in a provided TextStyle
* Added TextStyle class and default implementations for various message types ↵Kevin Van Brunt2019-06-261-22/+22
| | | | like Warning, Error, and Succes
* Moved code related to ANSI escape codes to new file called ansi.pyKevin Van Brunt2019-06-261-26/+25
|
* Added bold and underline to style()Kevin Van Brunt2019-06-261-5/+3
|
* Removed unneeded (optional) text from docstringsKevin Van Brunt2019-06-261-21/+21
|
* Renamed style_message to styleKevin Van Brunt2019-06-261-8/+8
|
* 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-251-19/+16
| | | | than color
* Removed end argument from style_messageKevin Van Brunt2019-06-251-4/+4
|
* 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 some pexcept uses with perror and updated documentationKevin Van Brunt2019-06-251-23/+20
|
* Fix flake8 errors, don't use Style.RESET, fix docstring, change some ↵Daniel Ahn2019-06-241-46/+52
| | | | pexcept() calls to perror()
* Initial Commit for Issue 698xNinjaKittyx2019-06-241-84/+94
|
* Made tokens_for_completion() method public since a couple of our examples use itTodd Leonhardt2019-06-231-7/+7
|
* Made last_result public and restored the initialization of it in __init__ ↵Todd Leonhardt2019-06-231-0/+4
| | | | and associated comment
* Restored a few attributes to be publicTodd Leonhardt2019-06-231-51/+51
|
* Started refactoring transcript testing to have a better display of ↵Todd Leonhardt2019-06-161-1/+17
| | | | information to the user
* Fixed a few comments where "redirecting" accidentally got changed to ↵Todd Leonhardt2019-06-151-2/+2
| | | | "_redirecting"
* Updated CHANGELOG and made some more methods protectedTodd Leonhardt2019-06-151-18/+18
|
* Made more methods protectedTodd Leonhardt2019-06-151-23/+23
|
* Fix flake8 errors for continuation line under-indented after refactoringTodd Leonhardt2019-06-151-6/+6
|
* Began work to minimize public APITodd Leonhardt2019-06-151-175/+135
|
* Fix unit test failures I introduced in last commitTodd Leonhardt2019-06-151-39/+41
|
* Print warnings at end of load or pyscript instead of beginningTodd Leonhardt2019-06-151-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 testsKevin Van Brunt2019-06-151-0/+5
|
* Fixing unit testsKevin Van Brunt2019-06-151-1/+1
|
* Renamed pyscript to run_pyscriptKevin Van Brunt2019-06-141-7/+15
|