Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | parse_command_only now appropriately sets multiline_command | kotfu | 2018-08-08 | 1 | -4/+11 |
| | |||||
* | Merged master with bug fix for #474 | Todd Leonhardt | 2018-07-17 | 1 | -10/+8 |
|\ | |||||
| * | Bug fix and unit tests for #474 | kotfu | 2018-07-16 | 1 | -10/+8 |
| | | |||||
* | | Merge branch 'master' into plugin_functions | kotfu | 2018-07-10 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Use instance attribute for terminators | Kyle Sunden | 2018-07-10 | 1 | -1/+1 |
| | | | | | | If the `terminators` is the default, `None`, the function fails because the local variable was not updated. | ||||
* | | Fixed a couple type hints and minor pep8-style formatting issues | Todd Leonhardt | 2018-07-09 | 1 | -17/+18 |
| | | |||||
* | | Move LINE_FEED into constants | kotfu | 2018-07-07 | 1 | -5/+3 |
| | | |||||
* | | Merge branch 'master' into plugin_functions | kotfu | 2018-06-19 | 1 | -4/+20 |
|\ \ | |/ | |||||
| * | Allowing quoted paths when piping and redirecting | Kevin Van Brunt | 2018-06-07 | 1 | -4/+20 |
| | | |||||
* | | Fixed issue with parsing.py on Python 3.4 and 3.5 | Todd Leonhardt | 2018-06-05 | 1 | -15/+14 |
| | | | | | | | | Apparently versions of Python prior to 3.6 don't allow a comma after the last argument being passed to a method. | ||||
* | | Make statement feel immutable and add type hinting | kotfu | 2018-06-03 | 1 | -35/+64 |
| | | |||||
* | | Clarify documentation and change parse() parameter name | kotfu | 2018-05-27 | 1 | -4/+8 |
|/ | |||||
* | 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 |
| | |||||
* | Remove cmd2.Cmd.redirector for #381 | kotfu | 2018-05-10 | 1 | -17/+21 |
| | |||||
* | Make alias checking and command parsing use the same regex | kotfu | 2018-05-07 | 1 | -11/+51 |
| | | | | | | | | 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. | ||||
* | Fix bungled merge from master | kotfu | 2018-05-06 | 1 | -10/+16 |
| | |||||
* | Merge branch 'master' into ignore_identchars | kotfu | 2018-05-06 | 1 | -12/+39 |
|\ | | | | | | | | | | | # Conflicts: # cmd2/parsing.py # tests/test_parsing.py | ||||
| * | Fixed some warnings | Kevin Van Brunt | 2018-05-06 | 1 | -6/+5 |
| | | |||||
| * | Refactor self.complete() for #380 | kotfu | 2018-05-05 | 1 | -13/+40 |
| | | | | | | | | Use self.statement_parser() instead of self.parseline() | ||||
* | | Fix alias expansion when not followed by whitespace | kotfu | 2018-05-06 | 1 | -7/+20 |
|/ | |||||
* | Add argv to Statement object | kotfu | 2018-05-02 | 1 | -6/+27 |
| | |||||
* | Ensure args is ‘’ for backwards compatibility with cmd | kotfu | 2018-05-02 | 1 | -6/+12 |
| | |||||
* | Fix nested alias and shortcut expansion | kotfu | 2018-04-30 | 1 | -88/+80 |
| | |||||
* | Internal refactoring of parsing and tokenizing code | kotfu | 2018-04-29 | 1 | -19/+31 |
| | |||||
* | Add some documentation | kotfu | 2018-04-29 | 1 | -1/+29 |
| | |||||
* | Missed a mutable argument | kotfu | 2018-04-29 | 1 | -1/+1 |
| | |||||
* | Really get rid of the inputFrom stuff, including documentation | kotfu | 2018-04-29 | 1 | -10/+0 |
| | |||||
* | multilineCommands -> multiline_commands | kotfu | 2018-04-29 | 1 | -9/+9 |
| | |||||
* | outputTo -> output_to | kotfu | 2018-04-29 | 1 | -5/+5 |
| | |||||
* | pipeTo -> pipe_to | kotfu | 2018-04-29 | 1 | -8/+8 |
| | |||||
* | _command_and_args switched to static method | kotfu | 2018-04-29 | 1 | -1/+2 |
| | |||||
* | multilineCommand -> multiline_command | kotfu | 2018-04-29 | 1 | -9/+9 |
| | |||||
* | Move quotes and redirection_chars from arguments to constants | kotfu | 2018-04-29 | 1 | -18/+28 |
| | | | | Since the tab completion code relies on these same constants, if we allow them to be passed to the statement parser, we could have a situation where the statement parser and tab completion return different results. | ||||
* | Cleanup requested changes in pull request | kotfu | 2018-04-29 | 1 | -8/+7 |
| | |||||
* | Add description of comment-matching regex | kotfu | 2018-04-27 | 1 | -0/+24 |
| | |||||
* | First stage of refactoring cmd2.parseline() for tab completion | kotfu | 2018-04-26 | 1 | -24/+80 |
| | |||||
* | Add type hinting | kotfu | 2018-04-24 | 1 | -28/+43 |
| | |||||
* | Refactoring and code cleanup | kotfu | 2018-04-24 | 1 | -3/+3 |
| | | | | | | - rename CommandParser to StatementParser - move tests from test_shlexparsing.py to test_parsing.py - standardize the output of the parse() method into a variable called statement. | ||||
* | Multiline now working | kotfu | 2018-04-23 | 1 | -2/+2 |
| | |||||
* | Multiline support mostly done | kotfu | 2018-04-23 | 1 | -2/+13 |
| | |||||
* | More work on multiline | kotfu | 2018-04-23 | 1 | -0/+4 |
| | |||||
* | Fix parsing of input redirection and appending output | kotfu | 2018-04-23 | 1 | -7/+8 |
| | |||||
* | Shortcuts and aliases fully implemented. | kotfu | 2018-04-23 | 1 | -7/+7 |
| | |||||
* | Shortcut and alias processing added to CommandParser() | kotfu | 2018-04-23 | 1 | -3/+41 |
| | |||||
* | Updates to comments and todo list | kotfu | 2018-04-22 | 1 | -3/+1 |
| | |||||
* | args has to be ‘’ not None | kotfu | 2018-04-22 | 1 | -3/+6 |
| | |||||
* | refactor Command() to Statement(str) | kotfu | 2018-04-22 | 1 | -21/+46 |
| | | | | | - Command class renamed to Statement, and is now a subclass of str. - str’s are immutable, and the string needs to contain the arguments, so revise the parseString method | ||||
* | A bit of renaming | kotfu | 2018-04-21 | 1 | -11/+11 |
| | |||||
* | Move CommandParser class into its own file | kotfu | 2018-04-20 | 1 | -0/+212 |