summaryrefslogtreecommitdiff
path: root/cmd2
Commit message (Collapse)AuthorAgeFilesLines
* Update version to 0.9.1 for #4210.9.1kotfu2018-05-281-1/+1
|
* Update version to 0.9.0.1 for #421kotfu2018-05-281-1/+1
|
* Update version to 0.9.1rc1 to try and fix #421kotfu2018-05-281-1/+1
|
* Reverted preparse behavior to where it was (i.e. currently unused)Todd Leonhardt2018-05-271-1/+1
|
* Fixed bug where preparse() wasn't called before parsingTodd Leonhardt2018-05-271-10/+1
| | | | | Also: - Deleted postparse() since it was redundant with postparsing_precmd()
* Removed unused functionKevin Van Brunt2018-05-261-9/+0
|
* Merge branch 'master' into pyshell_readlineKevin Van Brunt2018-05-254-319/+368
|\
| * Make changes requested in PR #413kotfu2018-05-243-11/+41
| |
| * Oops, fixed another merge errorkotfu2018-05-231-263/+0
| |
| * Add EmptyStatement exception to default importskotfu2018-05-231-1/+1
| |
| * Fix merge errorkotfu2018-05-231-2/+0
| |
| * Merge branch 'master' into speedup_importkotfu2018-05-237-136/+337
| |\ | | | | | | | | | | | | | | | | | | # Conflicts: # cmd2/cmd2.py # tests/test_completion.py # tests/test_submenu.py
| * | Add Statement to default importkotfu2018-05-151-1/+1
| | |
| * | Move more code from cmd2.py into utils.pykotfu2018-05-062-98/+93
| | |
| * | Extract AddSubmenu() into it’s own modulekotfu2018-05-063-262/+264
| | |
| * | Defer 5 more importskotfu2018-05-061-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | - datetime - functools - io - subprocess - traceback
| * | Defer five importskotfu2018-05-061-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | - atexit - codecs - signal - tempfile - copy
| * | Defer import of InteractiveConsolekotfu2018-05-061-1/+1
| | |
| * | Defer import of unittestkotfu2018-05-062-211/+216
| | |
| * | Add default imports back inkotfu2018-05-061-0/+2
| | |
* | | Updated comments and removed unneeded callKevin Van Brunt2018-05-251-8/+11
| | |
* | | Fixed issue where IPython was overwriting prompts and exception formatting ↵Kevin Van Brunt2018-05-251-1/+25
| | | | | | | | | | | | in the Python console
* | | Made Python console tab complete from the correct namespace.Kevin Van Brunt2018-05-241-59/+58
| | | | | | | | | | | | Reduced the amount of code within a try block.
* | | Merge branch 'master' into pyshell_readlineKevin Van Brunt2018-05-242-1/+26
|\ \ \ | | |/ | |/|
| * | Fixes problem with not passing the parameter hint suppression down to ↵Eric Lin2018-05-222-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | sub-commands Added hint suppression on a per-parameter basis Added helper function to force an parameter to fall back to bash completion instead of using Cmd2 completion. - Hinting is still enabled by default but can be suppressed in the helper function.
* | | Clearing py's history before rebuilding itKevin Van Brunt2018-05-231-6/+8
| | |
* | | Added tab completion of Python identifiers when running the Python consoleKevin Van Brunt2018-05-232-8/+62
| | |
* | | Stopped sharing history between cmd2 and python consoleKevin Van Brunt2018-05-232-12/+71
|/ /
* | Bug fixes due to API differences in older versions of argcompleteTodd Leonhardt2018-05-191-6/+16
| | | | | | | | | | | | NOTES: - I didn't implement this correctly because I don't know how to programmatically determine the version of argcomplete; instead I based it on the version of Python - We should make sure this works correctly even if no version of argcomplete is installed
* | Changed some unit tests to use pytest-mock instead of mocker/monkeypatch ↵Eric Lin2018-05-192-3/+6
| | | | | | | | | | | | | | because they were failing for me. Added detection of ==SUPPRESS== in subcommand group names to avoid printing it in the help hint. Added some examples to tab_autocompletion to demonstrate how to tie in to cmd2 path_complete
* | Merge remote-tracking branch 'origin/master' into autocompleterEric Lin2018-05-192-27/+67
|\ \
| * | Added type hinting.Eric Lin2018-05-181-10/+9
| | |
| * | Merge branch 'master' into pyscriptTodd Leonhardt2018-05-171-10/+14
| |\ \
| * | | Suppresses stdout and stderr output by default when calling an application ↵Eric Lin2018-05-171-15/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | command from pyscript. Added support for tab completing application commands in ipython shell Updated unit tests scripts to set cmd_echo to True to validate command output.
| * | | Merge branch 'master' into pyscriptEric Lin2018-05-166-449/+285
| |\ \ \
| * | | | Some more pyscripting tweaks. Fixed issue with capturing ppaged output. ↵Eric Lin2018-05-042-7/+32
| | | | | | | | | | | | | | | | | | | | Added pyscript bridge to ipy command. Saving progress.
* | | | | Some fixes to autocompleter to make it easier to do delimited and file ↵Eric Lin2018-05-181-10/+40
| |_|/ / |/| | | | | | | | | | | completion. Saving state - more to come.
* | | | Fix bug in sequential terminator logickotfu2018-05-171-0/+9
| | | |
* | | | Added check to support a continuous run of a terminator to end a lineKevin Van Brunt2018-05-161-10/+5
| |/ / |/| |
* | | Completing alias names in value field of alias command since aliases can be ↵Kevin Van Brunt2018-05-151-3/+5
| | | | | | | | | | | | nested
* | | Get rid of last hard-coded redirection constantskotfu2018-05-102-7/+5
| | |
* | | Remove cmd2.Cmd.redirector for #381kotfu2018-05-103-26/+39
| | |
* | | Extract submenu code to new projectkotfu2018-05-091-264/+0
| | |
* | | Updated warning messageKevin Van Brunt2018-05-081-4/+4
| | |
* | | Expanded readline warning to include other missing featuresKevin Van Brunt2018-05-081-3/+5
| | |
* | | Grouped readline code togetherKevin Van Brunt2018-05-081-14/+13
| | |
* | | Merge branch 'master' into ignore_identcharskotfu2018-05-072-16/+33
|\ \ \
| * | | Added newline to warningKevin Van Brunt2018-05-071-1/+1
| | | |
| * | | Added warning if tab completion will be disabled. Not allowing libeditKevin Van Brunt2018-05-072-16/+33
| | |/ | |/|
* | | Make alias checking and command parsing use the same regexkotfu2018-05-072-34/+60
| | | | | | | | | | | | | | | | | | | | | | | | Provide a new is_valid_command() method on StatementParser to determine whether a string of characters could be a valid command. That means it can’t include any redirection, quote chars, whitespace, or terminator characters. This method is used when someone tries to create an alias, to ensure when we try and parse the alias that it will actually parse. This nicely encapsulates and standardizes all the logic for parsing and expansion into the StatementParser class. Also fix a bug in the regex to match valid command names, and add a bunch of new unit tests to ensure the bug stays fixed.