summaryrefslogtreecommitdiff
path: root/cmd2/parsing.py
Commit message (Collapse)AuthorAgeFilesLines
* parse_command_only now appropriately sets multiline_commandkotfu2018-08-081-4/+11
|
* Merged master with bug fix for #474Todd Leonhardt2018-07-171-10/+8
|\
| * Bug fix and unit tests for #474kotfu2018-07-161-10/+8
| |
* | Merge branch 'master' into plugin_functionskotfu2018-07-101-1/+1
|\ \ | |/
| * Use instance attribute for terminatorsKyle Sunden2018-07-101-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 issuesTodd Leonhardt2018-07-091-17/+18
| |
* | Move LINE_FEED into constantskotfu2018-07-071-5/+3
| |
* | Merge branch 'master' into plugin_functionskotfu2018-06-191-4/+20
|\ \ | |/
| * Allowing quoted paths when piping and redirectingKevin Van Brunt2018-06-071-4/+20
| |
* | Fixed issue with parsing.py on Python 3.4 and 3.5Todd Leonhardt2018-06-051-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 hintingkotfu2018-06-031-35/+64
| |
* | Clarify documentation and change parse() parameter namekotfu2018-05-271-4/+8
|/
* 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
|
* Remove cmd2.Cmd.redirector for #381kotfu2018-05-101-17/+21
|
* Make alias checking and command parsing use the same regexkotfu2018-05-071-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 masterkotfu2018-05-061-10/+16
|
* Merge branch 'master' into ignore_identcharskotfu2018-05-061-12/+39
|\ | | | | | | | | | | # Conflicts: # cmd2/parsing.py # tests/test_parsing.py
| * Fixed some warningsKevin Van Brunt2018-05-061-6/+5
| |
| * Refactor self.complete() for #380kotfu2018-05-051-13/+40
| | | | | | | | Use self.statement_parser() instead of self.parseline()
* | Fix alias expansion when not followed by whitespacekotfu2018-05-061-7/+20
|/
* Add argv to Statement objectkotfu2018-05-021-6/+27
|
* Ensure args is ‘’ for backwards compatibility with cmdkotfu2018-05-021-6/+12
|
* Fix nested alias and shortcut expansionkotfu2018-04-301-88/+80
|
* Internal refactoring of parsing and tokenizing codekotfu2018-04-291-19/+31
|
* Add some documentationkotfu2018-04-291-1/+29
|
* Missed a mutable argumentkotfu2018-04-291-1/+1
|
* Really get rid of the inputFrom stuff, including documentationkotfu2018-04-291-10/+0
|
* multilineCommands -> multiline_commandskotfu2018-04-291-9/+9
|
* outputTo -> output_tokotfu2018-04-291-5/+5
|
* pipeTo -> pipe_tokotfu2018-04-291-8/+8
|
* _command_and_args switched to static methodkotfu2018-04-291-1/+2
|
* multilineCommand -> multiline_commandkotfu2018-04-291-9/+9
|
* Move quotes and redirection_chars from arguments to constantskotfu2018-04-291-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 requestkotfu2018-04-291-8/+7
|
* Add description of comment-matching regexkotfu2018-04-271-0/+24
|
* First stage of refactoring cmd2.parseline() for tab completionkotfu2018-04-261-24/+80
|
* Add type hintingkotfu2018-04-241-28/+43
|
* Refactoring and code cleanupkotfu2018-04-241-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 workingkotfu2018-04-231-2/+2
|
* Multiline support mostly donekotfu2018-04-231-2/+13
|
* More work on multilinekotfu2018-04-231-0/+4
|
* Fix parsing of input redirection and appending outputkotfu2018-04-231-7/+8
|
* Shortcuts and aliases fully implemented.kotfu2018-04-231-7/+7
|
* Shortcut and alias processing added to CommandParser()kotfu2018-04-231-3/+41
|
* Updates to comments and todo listkotfu2018-04-221-3/+1
|
* args has to be ‘’ not Nonekotfu2018-04-221-3/+6
|
* refactor Command() to Statement(str)kotfu2018-04-221-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 renamingkotfu2018-04-211-11/+11
|
* Move CommandParser class into its own filekotfu2018-04-201-0/+212