Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | Using argparse constants instead of hardcoded strings | Kevin Van Brunt | 2019-07-04 | 3 | -16/+21 | |
| | | | ||||||
* | | | Made optional args on completers keyword-only | Kevin Van Brunt | 2019-07-04 | 1 | -7/+7 | |
| | | | ||||||
* | | | Patched 2 more argparse functions to make nargs ranges work with all parsers | Kevin Van Brunt | 2019-07-04 | 1 | -43/+73 | |
| | | | ||||||
* | | | Refactoring and updating documentation | Kevin Van Brunt | 2019-07-04 | 1 | -27/+31 | |
| | | | ||||||
* | | | No longer restricting nargs range support to Cmd2ArgParser | Kevin Van Brunt | 2019-07-04 | 2 | -222/+179 | |
| | | | ||||||
* | | | Fixed spelling | Kevin Van Brunt | 2019-07-03 | 1 | -1/+1 | |
| | | | ||||||
* | | | Removed unused custom_error_message code | Kevin Van Brunt | 2019-07-03 | 1 | -15/+0 | |
| | | | ||||||
* | | | Renamed ACHelpFormatter to Cmd2HelpFormatter | Kevin Van Brunt | 2019-07-03 | 1 | -2/+2 | |
| | | | ||||||
* | | | Moved cmd2 custom argparse types to argparse_custom.py | Kevin Van Brunt | 2019-07-03 | 3 | -709/+468 | |
| | | | | | | | | | | | | Rename ACArgumentParser to Cmd2ArgParser | |||||
* | | | Merge branch 'master' into auto_completer_refactor | Kevin Van Brunt | 2019-07-03 | 1 | -28/+5 | |
|\ \ \ | | |/ | |/| | ||||||
| * | | Removed typo | Kevin Van Brunt | 2019-07-03 | 1 | -1/+1 | |
| | | | ||||||
| * | | Removed import of Collection since we are no longer calling len() on the ↵ | Kevin Van Brunt | 2019-07-03 | 1 | -29/+6 | |
| | | | | | | | | | | | | variables that needed it | |||||
* | | | Fixed some bugs in _resolve_choices_for_arg | Kevin Van Brunt | 2019-07-03 | 1 | -10/+22 | |
| | | | ||||||
* | | | Updated comments | Kevin Van Brunt | 2019-07-03 | 1 | -8/+8 | |
| | | | ||||||
* | | | Merge branch 'master' into auto_completer_refactor | Kevin Van Brunt | 2019-07-03 | 1 | -1/+1 | |
|\ \ \ | |/ / | ||||||
| * | | Fixed issue where wrong function was being set for Pyreadline's ↵ | Kevin Van Brunt | 2019-07-03 | 1 | -1/+1 | |
| |/ | | | | | | | _display_completions | |||||
* | | Patched argparse._ActionsContainer.add_argument() to support more settings ↵ | Kevin Van Brunt | 2019-07-02 | 2 | -109/+97 | |
| | | | | | | | | like enabling tab completion and providing choice generating functions | |||||
* | | Added functions to enable tab completion and choices provider functions to ↵ | Kevin Van Brunt | 2019-07-02 | 2 | -129/+177 | |
| | | | | | | | | argparse argument values | |||||
* | | Removed cmd2.basic_complete function since it was added to utils | Kevin Van Brunt | 2019-07-02 | 1 | -15/+0 | |
| | | ||||||
* | | Moved basic_complete to utils | Kevin Van Brunt | 2019-07-02 | 3 | -11/+29 | |
| | | ||||||
* | | Small refactor and documentation updates | Kevin Van Brunt | 2019-07-01 | 2 | -19/+34 | |
|/ | ||||||
* | Whitespace and doc fixes | Kevin Van Brunt | 2019-07-01 | 1 | -1/+1 | |
| | ||||||
* | Modified async_alert_str to also get passed the number of terminal columns ↵ | Todd Leonhardt | 2019-07-01 | 2 | -10/+8 | |
| | | | | 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 | 2 | -6/+5 | |
| | | | | | | | | | | | | 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 | 2 | -54/+78 | |
|/ | | | | | | | | | | | | | | | 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 | |||||
* | Require pyperclip >= 1.6 which simplifies clipboard.py | Todd Leonhardt | 2019-06-29 | 1 | -20/+4 | |
| | ||||||
* | 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. | |||||
* | Added import of ansi.style directly into cmd2 namespace in __init__.py | Todd Leonhardt | 2019-06-29 | 1 | -0/+1 | |
| | | | | | Also: - Fixed an example in README which was using print() instead of self.poutput() | |||||
* | 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 | |
| | ||||||
* | Minor fix to docstring of ansi.style() | Todd Leonhardt | 2019-06-28 | 1 | -2/+2 | |
| | ||||||
* | Updated Sphinx documentation and README.md | Todd Leonhardt | 2019-06-28 | 1 | -4/+4 | |
| | ||||||
* | Moved RESET to end of color dictionaries and skip a test on Mac since it is ↵ | Todd Leonhardt | 2019-06-28 | 1 | -2/+2 | |
| | | | | unreliable on Azure DevOps CI | |||||
* | Simplified ansi color dictionaries and lookup methods | Todd Leonhardt | 2019-06-27 | 1 | -32/+24 | |
| | | | | | | | 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 functions | Todd Leonhardt | 2019-06-27 | 1 | -28/+63 | |
| | ||||||
* | 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 | 3 | -26/+36 | |
| | | | | ansi_aware_write(). | |||||
* | Made allow_ansi an application-wide setting and moved it to ansi.py | Kevin Van Brunt | 2019-06-27 | 3 | -20/+36 | |
| | ||||||
* | Renamed colors setting to allow_ansi | Kevin Van Brunt | 2019-06-26 | 3 | -14/+14 | |
| | ||||||
* | Updated documentation | Kevin Van Brunt | 2019-06-26 | 1 | -2/+4 | |
| | ||||||
* | Changed default styles to use a more flexible approach which could be used ↵ | Kevin Van Brunt | 2019-06-26 | 3 | -60/+24 | |
| | | | | 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 | 2 | -16/+42 | |
| | | | | settings in a provided TextStyle | |||||
* | Combined some logic in style | Kevin Van Brunt | 2019-06-26 | 1 | -20/+23 | |
| | ||||||
* | Added TextStyle class and default implementations for various message types ↵ | Kevin Van Brunt | 2019-06-26 | 3 | -44/+63 | |
| | | | | like Warning, Error, and Succes | |||||
* | Moved code related to ANSI escape codes to new file called ansi.py | Kevin Van Brunt | 2019-06-26 | 6 | -159/+154 | |
| |