Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixing unit tests | Kevin Van Brunt | 2019-07-04 | 1 | -4/+2 |
| | |||||
* | Whitespace and doc fixes | Kevin Van Brunt | 2019-07-01 | 1 | -1/+1 |
| | |||||
* | Fixed a couple example transcripts that didn't get updated when colors got ↵ | Todd Leonhardt | 2019-06-29 | 2 | -2/+2 |
| | | | | renamed to allow_ansi | ||||
* | Updated color examples to support bold and underline options | Todd Leonhardt | 2019-06-28 | 2 | -2/+6 |
| | |||||
* | Improve background color display of prompt in async_printing.py example | Todd Leonhardt | 2019-06-28 | 1 | -1/+1 |
| | |||||
* | Simplified ansi color dictionaries and lookup methods | Todd Leonhardt | 2019-06-27 | 5 | -163/+47 |
| | | | | | | | 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 | ||||
* | Changed signature of style() to allow for simpler calling and overriding of ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -1/+1 |
| | | | | settings in a provided TextStyle | ||||
* | Added TextStyle class and default implementations for various message types ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -1/+2 |
| | | | | 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 | -2/+1 |
| | |||||
* | Renamed style_message to style | Kevin Van Brunt | 2019-06-26 | 1 | -1/+1 |
| | |||||
* | Removed color args from poutput since the style function is going to do more ↵ | Kevin Van Brunt | 2019-06-25 | 1 | -14/+2 |
| | | | | than color | ||||
* | Replaced more pexcept uses with perror | Kevin Van Brunt | 2019-06-25 | 2 | -8/+8 |
| | |||||
* | Initial Commit for Issue 698 | xNinjaKittyx | 2019-06-24 | 3 | -10/+9 |
| | |||||
* | Made tokens_for_completion() method public since a couple of our examples use it | Todd Leonhardt | 2019-06-23 | 1 | -3/+3 |
| | |||||
* | Made last_result public and restored the initialization of it in __init__ ↵ | Todd Leonhardt | 2019-06-23 | 2 | -6/+6 |
| | | | | and associated comment | ||||
* | Restored a few attributes to be public | Todd Leonhardt | 2019-06-23 | 1 | -5/+5 |
| | |||||
* | Fixed a bunch of examples which were broken due to moving DEFAULT_SHORTCUTS ↵ | Todd Leonhardt | 2019-06-16 | 7 | -7/+7 |
| | | | | from cmd2.py to constants.py | ||||
* | Began work to minimize public API | Todd Leonhardt | 2019-06-15 | 3 | -11/+11 |
| | |||||
* | Updated comment | Kevin Van Brunt | 2019-06-15 | 1 | -4/+4 |
| | |||||
* | Updated various documentation and tests to not use load | Todd Leonhardt | 2019-06-15 | 2 | -6/+6 |
| | |||||
* | Fix unit test failures I introduced in last commit | Todd Leonhardt | 2019-06-15 | 1 | -2/+2 |
| | |||||
* | Updated documentation | Kevin Van Brunt | 2019-06-15 | 4 | -7/+7 |
| | |||||
* | Updated comment | Kevin Van Brunt | 2019-06-15 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into history_fixes | Kevin Van Brunt | 2019-06-14 | 7 | -13/+4 |
|\ | |||||
| * | Removed support for cmd.cmdqueue | Kevin Van Brunt | 2019-06-11 | 3 | -7/+2 |
| | | | | | | | | allow_cli_args is now an argument to __init__ instead of a cmd2 class member | ||||
| * | Removed copyright headers from source files and updated LICENSE with current ↵ | Kevin Van Brunt | 2019-06-07 | 2 | -6/+0 |
| | | | | | | | | year | ||||
| * | Transcript testing now properly handles commands which signal the ↵ | Todd Leonhardt | 2019-06-06 | 2 | -0/+2 |
| | | | | | | | | | | | | application to quit Implemented an antediluvian TODO | ||||
* | | Fix history display issues | Todd Leonhardt | 2019-06-13 | 1 | -1/+2 |
|/ | | | | | | | | | | | 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 | ||||
* | Changed example cmd2 history file's extension from txt to dat since it is ↵ | Kevin Van Brunt | 2019-06-05 | 1 | -1/+1 |
| | | | | now binary | ||||
* | Refactor exit_code implementation | Todd Leonhardt | 2019-05-20 | 23 | -36/+56 |
| | | | | | | | | | | | | cmd2.Cmd.cmdloop() now returns self.exit_code which should be an integer Also: - Refactored examples to call sys.exit(app.cmdloop()) in their __main__ - Running transcript tests now sets the exit_code accordingly based on success/failure - Updated CHANGELOG - Updated README - Updated Sphinx docs - Added unit test for case when transcript test fails | ||||
* | Improved code coverage | Kevin Van Brunt | 2019-05-07 | 2 | -2/+2 |
| | |||||
* | Fixed issue when printing alerts caused by a prompt with a new line character | Kevin Van Brunt | 2019-03-21 | 1 | -4/+4 |
| | |||||
* | Merge branch 'master' into attributes | Todd Leonhardt | 2019-03-17 | 1 | -5/+11 |
|\ | |||||
| * | Updated docs and example | Kevin Van Brunt | 2019-03-17 | 1 | -5/+11 |
| | | |||||
* | | Converted class attributes which aren't intended to be dynamically settable ↵ | Todd Leonhardt | 2019-03-14 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to instance attributes The following are now instance attributes: - allow_cli_args - default_to_shell - quit_on_sigint The following class attribute was deleted due to lack of use: - reserved_words The following instance attribute was deleted due to lack of use: - keywords | ||||
* | | Merge branch 'master' into attributes | Todd Leonhardt | 2019-03-14 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | Updated documentation | Kevin Van Brunt | 2019-03-14 | 1 | -1/+4 |
| | | |||||
* | | Fixed how shortcuts are set in examples | Todd Leonhardt | 2019-03-14 | 8 | -42/+30 |
| | | |||||
* | | First stage of attribute refactoring | Todd Leonhardt | 2019-03-13 | 7 | -14/+8 |
|/ | | | | | | | | | | The following are now arguments to cmd2.Cmd.__init__() instead of class attributes: * allow_redirection * multiline_commands * terminators * shortcuts Added a couple read-only properties for convenience of cmd2.Cmd accessing immutable members from self.statement_parser | ||||
* | Updated examples and documentation pertaining to disabling commands | Kevin Van Brunt | 2019-03-10 | 1 | -0/+12 |
| | |||||
* | Fixed typo in example | Kevin Van Brunt | 2019-03-10 | 1 | -1/+1 |
| | |||||
* | Fix for when with_argument_list is called with preserve_quotes optional argument | Todd Leonhardt | 2019-03-04 | 1 | -0/+5 |
| | |||||
* | Updated the examples to illustrate sorting CompletionItems | Kevin Van Brunt | 2019-02-27 | 2 | -4/+10 |
| | |||||
* | Made cmd2_app a positional and required argument of AutoCompleter. | Kevin Van Brunt | 2019-02-23 | 2 | -99/+4 |
| | | | | | Deleted bash tab completion support. AutoCompleter no longer assumes CompletionItem results are sorted. | ||||
* | Changed examples to reflect that settable doesn't need to be updated before ↵ | Kevin Van Brunt | 2019-02-20 | 7 | -14/+25 |
| | | | | calling init() | ||||
* | Fixed examples | Kevin Van Brunt | 2019-02-08 | 2 | -3/+3 |
| | |||||
* | Fixed issue where calling exit() or quit() from a pyscript would close the ↵ | Kevin Van Brunt | 2019-02-06 | 1 | -2/+2 |
| | | | | whole console | ||||
* | Fixed comment | Kevin Van Brunt | 2019-02-06 | 1 | -1/+1 |
| | |||||
* | Added help summary and a separate label for commands and topics | Kevin Van Brunt | 2018-12-21 | 1 | -12/+33 |
| | |||||
* | Removed newlines | Kevin Van Brunt | 2018-12-21 | 1 | -3/+1 |
| |