summaryrefslogtreecommitdiff
path: root/cmd2
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a lot of warningsKevin Van Brunt2019-03-014-22/+23
|
* Removed ability to call commands as if they were functions in pyscript (e.g. ↵Kevin Van Brunt2019-02-281-281/+25
| | | | app.help())
* Updated the examples to illustrate sorting CompletionItemsKevin Van Brunt2019-02-271-4/+4
|
* Added matches_sort_key member to cmd2Kevin Van Brunt2019-02-272-15/+30
|
* Made cmd2_app a positional and required argument of AutoCompleter.Kevin Van Brunt2019-02-233-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.10Kevin Van Brunt2019-02-221-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.9Kevin Van Brunt2019-02-211-2/+2
|
* Removed os.system in favor of do_shellKevin Van Brunt2019-02-211-6/+5
|
* No longer sorting settable during initialization since the show method ↵Kevin Van Brunt2019-02-201-6/+1
| | | | already sorts it results
* Fixed bug where items tab completed in set were not currentKevin Van Brunt2019-02-201-3/+7
|
* Suppress KeyboardInterrupt in portions of py/pyscript where the interactive ↵Kevin Van Brunt2019-02-061-141/+157
| | | | console isn't running
* Fixed issue where calling exit() or quit() from a pyscript would close the ↵Kevin Van Brunt2019-02-061-137/+138
| | | | whole console
* Echoing string data directly to inner_stream instead of inner_stream.buffer ↵Kevin Van Brunt2019-01-241-6/+5
| | | | to make sure line buffering is respected
* Added tab completion of paths to pyscript script argumentsKevin Van Brunt2019-01-081-2/+3
|
* Improved commentKevin Van Brunt2018-12-211-1/+3
|
* Restored default behavior of setting cmd_echo to False before running a py ↵Kevin Van Brunt2018-12-211-0/+4
| | | | script
* Fixed bug in cmd2.Cmd.select() when user enters 0 or negative numberTodd Leonhardt2018-12-131-0/+2
|
* Removed ERROR: text from perror outputKevin Van Brunt2018-12-061-1/+1
|
* Fix flake8 issuesTodd Leonhardt2018-12-067-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 hintsKevin Van Brunt2018-12-051-9/+9
|
* Moved some class specific code out of __init__Kevin Van Brunt2018-12-031-4/+4
|
* Moved default_to_shell logic back to default()Kevin Van Brunt2018-12-031-17/+14
|
* Made it so default_to_shell results in do_shell being called so that output ↵Kevin Van Brunt2018-11-301-29/+36
| | | | can be captured
* Updated commentKevin Van Brunt2018-11-301-4/+4
|
* Renamed display_width to ansi_safe_wcswidthKevin Van Brunt2018-11-162-6/+7
|
* Added wrapper for wcswidth that removes ansi escape charactersKevin Van Brunt2018-11-152-6/+16
|
* Remove elif: decolorized_write already handles itEthan McCreadie2018-11-011-4/+1
|
* Strip color codes when redirecting w/ ppaged()Ethan McCreadie2018-11-011-0/+3
|
* Fixed messed up GitHub auto-commit from PR suggestionTodd Leonhardt2018-10-261-2/+1
|
* Update cmd2/cmd2.pykmvanbrunt2018-10-261-1/+1
| | | Co-Authored-By: tleonhardt <todd.leonhardt@gmail.com>
* Update cmd2/cmd2.pykmvanbrunt2018-10-261-1/+1
| | | Co-Authored-By: tleonhardt <todd.leonhardt@gmail.com>
* Update cmd2/cmd2.pykmvanbrunt2018-10-261-1/+1
| | | Co-Authored-By: tleonhardt <todd.leonhardt@gmail.com>
* Improved documentation for argument parsing decoratorsTodd Leonhardt2018-10-261-13/+21
| | | | | Also: - Improved type hinting for these decorators
* Refactored filtering in path_complete to use a functionKevin Van Brunt2018-10-262-12/+12
|
* cmdloop now checks to see if it is running in the main thread before ↵Todd Leonhardt2018-10-211-6/+9
| | | | attempting to register a signal handler for SIGINT
* Deleted Cmd.colorize() method and Cmd._colorcodes dictionary which were ↵Todd Leonhardt2018-10-181-20/+0
| | | | deprecated in 0.9.5
* Updated outdated header comment in cmd2.pyTodd Leonhardt2018-10-141-1/+1
|
* RefactoredKevin Van Brunt2018-10-131-26/+29
|
* Argparse commands called as methods of PyscriptBridge now go through ↵Kevin Van Brunt2018-10-121-14/+15
| | | | onecmd_plus_hooks
* Non-argparse commands called as methods of PyscriptBridge now go through ↵Kevin Van Brunt2018-10-121-1/+6
| | | | onecmd_plus_hooks
* You can now call a macro with extra argumentsKevin Van Brunt2018-10-122-7/+17
|
* Refactored async_alertKevin Van Brunt2018-10-111-56/+43
|
* Using wcwidth to calculate display width of promptKevin Van Brunt2018-10-111-18/+25
|
* Do not asynchronously update continuation promptsKevin Van Brunt2018-10-111-16/+26
|
* Syle-based refactorKevin Van Brunt2018-10-111-2/+2
|
* Fixed ArgparseFunctor to allow flag looking tokens in REMAINDER sectionsKevin Van Brunt2018-10-101-2/+4
|
* Fixed issue where flag at beginning of REMAINDER section was tab completingKevin Van Brunt2018-10-101-10/+8
|
* Added code to handle -- in argparse completerKevin Van Brunt2018-10-102-22/+43
|
* Added tests for token_resembles_flagKevin Van Brunt2018-10-091-1/+2
|
* Fixed error where an inner stream like StringIO doesn't have a buffer attribute.Kevin Van Brunt2018-10-091-2/+8
|