Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed a lot of warnings | Kevin Van Brunt | 2019-03-01 | 4 | -22/+23 |
| | |||||
* | Removed ability to call commands as if they were functions in pyscript (e.g. ↵ | Kevin Van Brunt | 2019-02-28 | 1 | -281/+25 |
| | | | | app.help()) | ||||
* | Updated the examples to illustrate sorting CompletionItems | Kevin Van Brunt | 2019-02-27 | 1 | -4/+4 |
| | |||||
* | Added matches_sort_key member to cmd2 | Kevin Van Brunt | 2019-02-27 | 2 | -15/+30 |
| | |||||
* | Made cmd2_app a positional and required argument of AutoCompleter. | Kevin Van Brunt | 2019-02-23 | 3 | -304/+21 |
| | | | | | Deleted bash tab completion support. AutoCompleter no longer assumes CompletionItem results are sorted. | ||||
* | Restored called to expanduser in do_edit() instead of relying on do_shell() ↵0.9.10 | Kevin Van Brunt | 2019-02-22 | 1 | -2/+2 |
| | | | | | | to do it. This should prevent issues if someone has an overridden do_shell() that doesn't expand ~ in paths. | ||||
* | Updated macro documentation0.9.9 | Kevin Van Brunt | 2019-02-21 | 1 | -2/+2 |
| | |||||
* | Removed os.system in favor of do_shell | Kevin Van Brunt | 2019-02-21 | 1 | -6/+5 |
| | |||||
* | No longer sorting settable during initialization since the show method ↵ | Kevin Van Brunt | 2019-02-20 | 1 | -6/+1 |
| | | | | already sorts it results | ||||
* | Fixed bug where items tab completed in set were not current | Kevin Van Brunt | 2019-02-20 | 1 | -3/+7 |
| | |||||
* | Suppress KeyboardInterrupt in portions of py/pyscript where the interactive ↵ | Kevin Van Brunt | 2019-02-06 | 1 | -141/+157 |
| | | | | console isn't running | ||||
* | Fixed issue where calling exit() or quit() from a pyscript would close the ↵ | Kevin Van Brunt | 2019-02-06 | 1 | -137/+138 |
| | | | | whole console | ||||
* | Echoing string data directly to inner_stream instead of inner_stream.buffer ↵ | Kevin Van Brunt | 2019-01-24 | 1 | -6/+5 |
| | | | | to make sure line buffering is respected | ||||
* | Added tab completion of paths to pyscript script arguments | Kevin Van Brunt | 2019-01-08 | 1 | -2/+3 |
| | |||||
* | Improved comment | Kevin Van Brunt | 2018-12-21 | 1 | -1/+3 |
| | |||||
* | Restored default behavior of setting cmd_echo to False before running a py ↵ | Kevin Van Brunt | 2018-12-21 | 1 | -0/+4 |
| | | | | script | ||||
* | Fixed bug in cmd2.Cmd.select() when user enters 0 or negative number | Todd Leonhardt | 2018-12-13 | 1 | -0/+2 |
| | |||||
* | Removed ERROR: text from perror output | Kevin Van Brunt | 2018-12-06 | 1 | -1/+1 |
| | |||||
* | Fix flake8 issues | Todd Leonhardt | 2018-12-06 | 7 | -18/+21 |
| | | | | | | | | | | | | | | | | | | | | | | This commit contains a very large number of trivial changes in order to fix flake8 errors and warnings. Predominantly these are whitespace changes. Additionally, the build for Python 3.7 on TravisCI has been tweaked to fail if there are any flake8 errors using the following commandline: * flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics NOTE: In the future the max cyclomatic complexity should be lowered, but some improvements need to be made first. One flake8 error is being ignored entirely: * E252 missing whitespace around parameter equals * ignored because it doesn't correctly deal with default argument values after a type hint A few flake8 errors are being selectively ignored in certain files: * C901 fuction is too complex * ignored in argparse_completer.py because the complex code is an override of argparse complexity * E302 expected 2 blank lines after ... * ignored in all unit test files for convenience * F401 module imported but unused * ignored in cmd2/__init__.py because imports are for convenience of cmd2 developers and backwards compatibility * F821 undefined name * ignored in cmd2 script files which are intended to run only within cmd2 applications via pyscript where "app" and "cmd" are defined | ||||
* | Added some return type hints | Kevin Van Brunt | 2018-12-05 | 1 | -9/+9 |
| | |||||
* | Moved some class specific code out of __init__ | Kevin Van Brunt | 2018-12-03 | 1 | -4/+4 |
| | |||||
* | Moved default_to_shell logic back to default() | Kevin Van Brunt | 2018-12-03 | 1 | -17/+14 |
| | |||||
* | Made it so default_to_shell results in do_shell being called so that output ↵ | Kevin Van Brunt | 2018-11-30 | 1 | -29/+36 |
| | | | | can be captured | ||||
* | Updated comment | Kevin Van Brunt | 2018-11-30 | 1 | -4/+4 |
| | |||||
* | Renamed display_width to ansi_safe_wcswidth | Kevin Van Brunt | 2018-11-16 | 2 | -6/+7 |
| | |||||
* | Added wrapper for wcswidth that removes ansi escape characters | Kevin Van Brunt | 2018-11-15 | 2 | -6/+16 |
| | |||||
* | Remove elif: decolorized_write already handles it | Ethan McCreadie | 2018-11-01 | 1 | -4/+1 |
| | |||||
* | Strip color codes when redirecting w/ ppaged() | Ethan McCreadie | 2018-11-01 | 1 | -0/+3 |
| | |||||
* | Fixed messed up GitHub auto-commit from PR suggestion | Todd Leonhardt | 2018-10-26 | 1 | -2/+1 |
| | |||||
* | Update cmd2/cmd2.py | kmvanbrunt | 2018-10-26 | 1 | -1/+1 |
| | | | Co-Authored-By: tleonhardt <todd.leonhardt@gmail.com> | ||||
* | Update cmd2/cmd2.py | kmvanbrunt | 2018-10-26 | 1 | -1/+1 |
| | | | Co-Authored-By: tleonhardt <todd.leonhardt@gmail.com> | ||||
* | Update cmd2/cmd2.py | kmvanbrunt | 2018-10-26 | 1 | -1/+1 |
| | | | Co-Authored-By: tleonhardt <todd.leonhardt@gmail.com> | ||||
* | Improved documentation for argument parsing decorators | Todd Leonhardt | 2018-10-26 | 1 | -13/+21 |
| | | | | | Also: - Improved type hinting for these decorators | ||||
* | Refactored filtering in path_complete to use a function | Kevin Van Brunt | 2018-10-26 | 2 | -12/+12 |
| | |||||
* | cmdloop now checks to see if it is running in the main thread before ↵ | Todd Leonhardt | 2018-10-21 | 1 | -6/+9 |
| | | | | attempting to register a signal handler for SIGINT | ||||
* | Deleted Cmd.colorize() method and Cmd._colorcodes dictionary which were ↵ | Todd Leonhardt | 2018-10-18 | 1 | -20/+0 |
| | | | | deprecated in 0.9.5 | ||||
* | Updated outdated header comment in cmd2.py | Todd Leonhardt | 2018-10-14 | 1 | -1/+1 |
| | |||||
* | Refactored | Kevin Van Brunt | 2018-10-13 | 1 | -26/+29 |
| | |||||
* | Argparse commands called as methods of PyscriptBridge now go through ↵ | Kevin Van Brunt | 2018-10-12 | 1 | -14/+15 |
| | | | | onecmd_plus_hooks | ||||
* | Non-argparse commands called as methods of PyscriptBridge now go through ↵ | Kevin Van Brunt | 2018-10-12 | 1 | -1/+6 |
| | | | | onecmd_plus_hooks | ||||
* | You can now call a macro with extra arguments | Kevin Van Brunt | 2018-10-12 | 2 | -7/+17 |
| | |||||
* | Refactored async_alert | Kevin Van Brunt | 2018-10-11 | 1 | -56/+43 |
| | |||||
* | Using wcwidth to calculate display width of prompt | Kevin Van Brunt | 2018-10-11 | 1 | -18/+25 |
| | |||||
* | Do not asynchronously update continuation prompts | Kevin Van Brunt | 2018-10-11 | 1 | -16/+26 |
| | |||||
* | Syle-based refactor | Kevin Van Brunt | 2018-10-11 | 1 | -2/+2 |
| | |||||
* | Fixed ArgparseFunctor to allow flag looking tokens in REMAINDER sections | Kevin Van Brunt | 2018-10-10 | 1 | -2/+4 |
| | |||||
* | Fixed issue where flag at beginning of REMAINDER section was tab completing | Kevin Van Brunt | 2018-10-10 | 1 | -10/+8 |
| | |||||
* | Added code to handle -- in argparse completer | Kevin Van Brunt | 2018-10-10 | 2 | -22/+43 |
| | |||||
* | Added tests for token_resembles_flag | Kevin Van Brunt | 2018-10-09 | 1 | -1/+2 |
| | |||||
* | Fixed error where an inner stream like StringIO doesn't have a buffer attribute. | Kevin Van Brunt | 2018-10-09 | 1 | -2/+8 |
| |