Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |
| |/ |/| | ||||||
* | | Reverted making constant values for colors. This will be done on a future ↵ | Kevin Van Brunt | 2019-06-13 | 1 | -8/+9 | |
| | | | | | | | | ticket. | |||||
* | | Transcript generation no longer terminates _cmdloop() when a command returns ↵ | Kevin Van Brunt | 2019-06-12 | 1 | -7/+8 | |
| | | | | | | | | True for stop | |||||
* | | Fixed UnsupportedOperation on fileno error when a shell command was one of ↵ | Kevin Van Brunt | 2019-06-12 | 1 | -11/+5 | |
| | | | | | | | | the commands run while generating a transcript | |||||
* | | Made constants for color values | Kevin Van Brunt | 2019-06-12 | 1 | -8/+7 | |
| | | ||||||
* | | Revert "Move argparse parsing of CLI args back to cmdloop() from __init__()" | Kevin Van Brunt | 2019-06-12 | 1 | -17/+16 | |
| | | | | | | | | This reverts commit f42cdb2a52a096e5c2627db5eeeae7c2e059fb4a. | |||||
* | | Move argparse parsing of CLI args back to cmdloop() from __init__() | Todd Leonhardt | 2019-06-11 | 1 | -16/+17 | |
| | | | | | | | | This is so unit tests pass | |||||
* | | Removed support for cmd.cmdqueue | Kevin Van Brunt | 2019-06-11 | 1 | -43/+48 | |
| | | | | | | | | allow_cli_args is now an argument to __init__ instead of a cmd2 class member | |||||
* | | Removed self._should_quit from cmd2 and add logic to PyscriptBridge to ↵ | Kevin Van Brunt | 2019-06-07 | 1 | -6/+3 | |
| | | | | | | | | | | | | return whether a command returned True for stop. Added stop to CommandResult so pyscripts can now know the return value of a command's do_* function. | |||||
* | | Moved a new helper function from cmd2.py to utils.py where it probably belonged | Todd Leonhardt | 2019-06-07 | 1 | -15/+1 | |
| | | ||||||
* | | Extracted duplicated code to utility function | Todd Leonhardt | 2019-06-06 | 1 | -4/+4 | |
| | | ||||||
* | | Refactored how and when transcript file glob patterns are expanded in order ↵ | Todd Leonhardt | 2019-06-06 | 1 | -5/+25 | |
| | | | | | | | | to present a better error message to user |