Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'master' into speedup_import | kotfu | 2018-05-23 | 7 | -136/+337 |
|\ | | | | | | | | | | | | | # Conflicts: # cmd2/cmd2.py # tests/test_completion.py # tests/test_submenu.py | ||||
| * | Fixes problem with not passing the parameter hint suppression down to ↵ | Eric Lin | 2018-05-22 | 2 | -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. | ||||
| * | Bug fixes due to API differences in older versions of argcomplete | Todd Leonhardt | 2018-05-19 | 1 | -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 Lin | 2018-05-19 | 2 | -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 autocompleter | Eric Lin | 2018-05-19 | 2 | -27/+67 |
| |\ | |||||
| | * | Added type hinting. | Eric Lin | 2018-05-18 | 1 | -10/+9 |
| | | | |||||
| | * | Merge branch 'master' into pyscript | Todd Leonhardt | 2018-05-17 | 1 | -10/+14 |
| | |\ | |||||
| | * | | Suppresses stdout and stderr output by default when calling an application ↵ | Eric Lin | 2018-05-17 | 1 | -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 pyscript | Eric Lin | 2018-05-16 | 6 | -449/+285 |
| | |\ \ | |||||
| | * | | | Some more pyscripting tweaks. Fixed issue with capturing ppaged output. ↵ | Eric Lin | 2018-05-04 | 2 | -7/+32 |
| | | | | | | | | | | | | | | | | | | | | Added pyscript bridge to ipy command. Saving progress. | ||||
| * | | | | Some fixes to autocompleter to make it easier to do delimited and file ↵ | Eric Lin | 2018-05-18 | 1 | -10/+40 |
| | |_|/ | |/| | | | | | | | | | | completion. Saving state - more to come. | ||||
| * | | | Fix bug in sequential terminator logic | kotfu | 2018-05-17 | 1 | -0/+9 |
| | | | | |||||
| * | | | Added check to support a continuous run of a terminator to end a line | Kevin Van Brunt | 2018-05-16 | 1 | -10/+5 |
| | |/ | |/| | |||||
| * | | Completing alias names in value field of alias command since aliases can be ↵ | Kevin Van Brunt | 2018-05-15 | 1 | -3/+5 |
| | | | | | | | | | | | | nested | ||||
| * | | Get rid of last hard-coded redirection constants | kotfu | 2018-05-10 | 2 | -7/+5 |
| | | | |||||
| * | | Remove cmd2.Cmd.redirector for #381 | kotfu | 2018-05-10 | 3 | -26/+39 |
| | | | |||||
| * | | Extract submenu code to new project | kotfu | 2018-05-09 | 1 | -264/+0 |
| | | | |||||
| * | | Updated warning message | Kevin Van Brunt | 2018-05-08 | 1 | -4/+4 |
| | | | |||||
| * | | Expanded readline warning to include other missing features | Kevin Van Brunt | 2018-05-08 | 1 | -3/+5 |
| | | | |||||
| * | | Grouped readline code together | Kevin Van Brunt | 2018-05-08 | 1 | -14/+13 |
| | | | |||||
| * | | Merge branch 'master' into ignore_identchars | kotfu | 2018-05-07 | 2 | -16/+33 |
| |\ \ | |||||
| | * | | Added newline to warning | Kevin Van Brunt | 2018-05-07 | 1 | -1/+1 |
| | | | | |||||
| | * | | Added warning if tab completion will be disabled. Not allowing libedit | Kevin Van Brunt | 2018-05-07 | 2 | -16/+33 |
| | | | | |||||
| * | | | Make alias checking and command parsing use the same regex | kotfu | 2018-05-07 | 2 | -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. | ||||
| * | | | Clarify comments for self.invalid_alias_pattern | kotfu | 2018-05-06 | 1 | -1/+4 |
| | | | | |||||
| * | | | Fix bungled merge from master | kotfu | 2018-05-06 | 1 | -10/+16 |
| | | | | |||||
| * | | | Merge branch 'master' into ignore_identchars | kotfu | 2018-05-06 | 2 | -74/+47 |
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | # Conflicts: # cmd2/parsing.py # tests/test_parsing.py | ||||
| * | | | Don’t allow wierd characters in alias names | kotfu | 2018-05-06 | 1 | -0/+19 |
| | | | | |||||
| * | | | Fix alias expansion when not followed by whitespace | kotfu | 2018-05-06 | 1 | -7/+20 |
| | | | | |||||
| * | | | Remove check on self.identchars in do_alias() | kotfu | 2018-05-05 | 1 | -7/+0 |
| | | | | | | | | | | | | | | | | self.identchars is no longer used by cmd2. | ||||
* | | | | Add Statement to default import | kotfu | 2018-05-15 | 1 | -1/+1 |
| | | | | |||||
* | | | | Move more code from cmd2.py into utils.py | kotfu | 2018-05-06 | 2 | -98/+93 |
| | | | | |||||
* | | | | Extract AddSubmenu() into it’s own module | kotfu | 2018-05-06 | 3 | -262/+264 |
| | | | | |||||
* | | | | Defer 5 more imports | kotfu | 2018-05-06 | 1 | -7/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - datetime - functools - io - subprocess - traceback | ||||
* | | | | Defer five imports | kotfu | 2018-05-06 | 1 | -6/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - atexit - codecs - signal - tempfile - copy | ||||
* | | | | Defer import of InteractiveConsole | kotfu | 2018-05-06 | 1 | -1/+1 |
| | | | | |||||
* | | | | Defer import of unittest | kotfu | 2018-05-06 | 2 | -211/+216 |
| | | | | |||||
* | | | | Add default imports back in | kotfu | 2018-05-06 | 1 | -0/+2 |
| |/ / |/| | | |||||
* | | | Fixed some warnings | Kevin Van Brunt | 2018-05-06 | 1 | -6/+5 |
| | | | |||||
* | | | Fixed comment | Kevin Van Brunt | 2018-05-06 | 1 | -2/+1 |
| | | | |||||
* | | | Refactor parseline() for #380 | kotfu | 2018-05-05 | 1 | -54/+4 |
| | | | |||||
* | | | Refactor self.complete() for #380 | kotfu | 2018-05-05 | 2 | -19/+43 |
|/ / | | | | | | | Use self.statement_parser() instead of self.parseline() | ||||
* | | Merge branch 'master' into transcript_tests | Todd Leonhardt | 2018-05-04 | 2 | -9/+10 |
|\ \ | |||||
| * | | Added argcomplete to unit test environment. Added exclusion for Windows | Eric Lin | 2018-05-04 | 1 | -1/+1 |
| | | | |||||
| * | | Adds some semblance of testing for bash completion. Tests the completion ↵ | Eric Lin | 2018-05-04 | 1 | -2/+2 |
| | | | | | | | | | | | | logic in the argcomplete function but doesn't test actual completion in bash. | ||||
| * | | Figured out how to detect the second tab press. Writing parameter hinting to ↵ | Eric Lin | 2018-05-03 | 2 | -7/+8 |
| |/ | | | | | | | stderr to bypass bash completion handling. | ||||
* | | Refactor transcript from history implementation and test | kotfu | 2018-05-04 | 1 | -59/+63 |
| | | |||||
* | | Fix transcript generate to close #385 | kotfu | 2018-05-04 | 1 | -18/+38 |
| | | |||||
* | | Fix #384, multiline commands now appear properly in transcripts | kotfu | 2018-05-03 | 1 | -6/+17 |
|/ | |||||
* | Merge branch 'ply' of https://github.com/python-cmd2/cmd2 into ply | kotfu | 2018-05-02 | 6 | -16/+846 |
|\ |