summaryrefslogtreecommitdiff
path: root/cmd2
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into speedup_importkotfu2018-05-237-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 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.
| * 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.
| * | | Clarify comments for self.invalid_alias_patternkotfu2018-05-061-1/+4
| | | |
| * | | Fix bungled merge from masterkotfu2018-05-061-10/+16
| | | |
| * | | Merge branch 'master' into ignore_identcharskotfu2018-05-062-74/+47
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | # Conflicts: # cmd2/parsing.py # tests/test_parsing.py
| * | | Don’t allow wierd characters in alias nameskotfu2018-05-061-0/+19
| | | |
| * | | Fix alias expansion when not followed by whitespacekotfu2018-05-061-7/+20
| | | |
| * | | Remove check on self.identchars in do_alias()kotfu2018-05-051-7/+0
| | | | | | | | | | | | | | | | self.identchars is no longer used by cmd2.
* | | | 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
| |/ / |/| |
* | | Fixed some warningsKevin Van Brunt2018-05-061-6/+5
| | |
* | | Fixed commentKevin Van Brunt2018-05-061-2/+1
| | |
* | | Refactor parseline() for #380kotfu2018-05-051-54/+4
| | |
* | | Refactor self.complete() for #380kotfu2018-05-052-19/+43
|/ / | | | | | | Use self.statement_parser() instead of self.parseline()
* | Merge branch 'master' into transcript_testsTodd Leonhardt2018-05-042-9/+10
|\ \
| * | Added argcomplete to unit test environment. Added exclusion for WindowsEric Lin2018-05-041-1/+1
| | |
| * | Adds some semblance of testing for bash completion. Tests the completion ↵Eric Lin2018-05-041-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 Lin2018-05-032-7/+8
| |/ | | | | | | stderr to bypass bash completion handling.
* | Refactor transcript from history implementation and testkotfu2018-05-041-59/+63
| |
* | Fix transcript generate to close #385kotfu2018-05-041-18/+38
| |
* | Fix #384, multiline commands now appear properly in transcriptskotfu2018-05-031-6/+17
|/
* Merge branch 'ply' of https://github.com/python-cmd2/cmd2 into plykotfu2018-05-026-16/+846
|\