summaryrefslogtreecommitdiff
path: root/cmd2
Commit message (Collapse)AuthorAgeFilesLines
* Merged from master and resolved conflictsTodd Leonhardt2018-06-072-21/+82
|\ | | | | | | | | Also: - Fixed a couple warnings which showed up in VScode.
| * Merge branch 'master' into autocompleterTodd Leonhardt2018-06-071-11/+18
| |\
| | * OSError is enough to catch the errors we are concerned withKevin Van Brunt2018-06-071-2/+2
| | |
| | * Fixed a couple potential crashes on opening filesTodd Leonhardt2018-06-061-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | Fixed crashes that occur when attempting to open a file in a non-existent directory or a when the filename is too long. Specifically fixed this when redirecting output to a file and when saving a transcript based on the history. Also added a couple unit tests related to the fixes.
| * | Update to use new completion_header when returning completions in tabular ↵Eric Lin2018-06-071-5/+3
| | | | | | | | | | | | format with descriptions
| * | Writing completion header to sys.stdout instead of self.stdoutKevin Van Brunt2018-06-061-1/+1
| | |
| * | Added ability to print a header above tab-completion suggestionsKevin Van Brunt2018-06-061-0/+12
| | |
| * | display_matches is no longer restricted to delimited stringsKevin Van Brunt2018-06-061-15/+17
| | |
| * | Adds possible support for tabular tab completion results.Eric Lin2018-06-061-0/+40
| |/
* | Allowing quoted paths when piping and redirectingKevin Van Brunt2018-06-072-5/+21
| |
* | Fix unexpected redirection behaviorTodd Leonhardt2018-06-071-1/+1
|/ | | | | | | | New behavior: - help > name with space - redirects to a file called "name" (without the quotes) - help > "name with space" - redirects to a file called "name with space" (without the quotes)
* Bumped version to 0.9.2a for twine upload testing on test.pypi.orgTodd Leonhardt2018-05-301-1/+1
|
* 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
| | | |