Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | You can now call a macro with extra arguments | Kevin Van Brunt | 2018-10-12 | 1 | -2/+2 | |
| | ||||||
* | Removed unneeded escapes in regular expressions | Kevin Van Brunt | 2018-09-28 | 1 | -2/+2 | |
| | ||||||
* | Addressing code review comments | Kevin Van Brunt | 2018-09-28 | 1 | -2/+3 | |
| | ||||||
* | Changes requested in code review | Kevin Van Brunt | 2018-09-27 | 1 | -1/+1 | |
| | ||||||
* | Refactored | Kevin Van Brunt | 2018-09-27 | 1 | -2/+2 | |
| | ||||||
* | Addressing code review comments | Kevin Van Brunt | 2018-09-27 | 1 | -1/+1 | |
| | ||||||
* | Fixed bug in handling unicode digits in macro arguments | Kevin Van Brunt | 2018-09-27 | 1 | -8/+10 | |
| | ||||||
* | Added unit tests for MacroArg regular expressions | Kevin Van Brunt | 2018-09-27 | 1 | -2/+4 | |
| | ||||||
* | Made macro argument patterns class members of MacroArg | Kevin Van Brunt | 2018-09-27 | 1 | -11/+11 | |
| | ||||||
* | More unit tests for aliases and macros | Kevin Van Brunt | 2018-09-26 | 1 | -7/+6 | |
| | ||||||
* | Added ability to preserve quotes in argparse and arglist decorated functions ↵ | Kevin Van Brunt | 2018-09-26 | 1 | -6/+7 | |
| | | | | to support aliases and macros | |||||
* | Finished macro commands. Still needs testing. | Kevin Van Brunt | 2018-09-25 | 1 | -4/+4 | |
| | ||||||
* | Added macro delete | Kevin Van Brunt | 2018-09-25 | 1 | -18/+19 | |
| | ||||||
* | Backing up macro command work | Kevin Van Brunt | 2018-09-24 | 1 | -0/+44 | |
| | ||||||
* | Added some more alias verification | Kevin Van Brunt | 2018-09-24 | 1 | -1/+1 | |
| | ||||||
* | Merge branch 'master' into macro | Kevin Van Brunt | 2018-09-20 | 1 | -10/+10 | |
|\ | ||||||
| * | Removed use of type argument in attr.ib() since that wasn't added until ↵ | Todd Leonhardt | 2018-09-20 | 1 | -10/+10 | |
| | | | | | | | | | | | | | | | | version 17.3.0. Also: - In setup.py require version of attrs to be >= 16.3.0 - I think this is right, if there are any issues we can bump this to version 17.1.0 | |||||
| * | Fix attrs usage so it works with older versions of attrs | Todd Leonhardt | 2018-09-20 | 1 | -2/+2 | |
| | | ||||||
* | | Converted alias command to one with subcommands | Kevin Van Brunt | 2018-09-18 | 1 | -8/+17 | |
|/ | ||||||
* | Fix bug in `parse_command_only` | kotfu | 2018-09-09 | 1 | -7/+8 | |
| | | | | More robust unit tests identified a bug, which is also fixed in this commit. | |||||
* | Added/updated documentation for `Statement` | kotfu | 2018-09-09 | 1 | -15/+73 | |
| | ||||||
* | Took a stab at improving documentation and unit tests for ↵ | Todd Leonhardt | 2018-09-08 | 1 | -0/+1 | |
| | | | | | | Statement.parse_command_only() Also slightly improved a few other unit tests | |||||
* | Simplified override of __new__ | Todd Leonhardt | 2018-09-06 | 1 | -13/+2 | |
| | | | | Eliminated redundant type information, since that is all being provided by attr.ib() calls | |||||
* | Use attrs on Statement object to do immutability | Todd Leonhardt | 2018-09-06 | 1 | -59/+40 | |
| | ||||||
* | Replace previously removed Statement initialization parameters | kotfu | 2018-09-05 | 1 | -2/+3 | |
| | | | | Statement is a subclass of str. Statement.__new__ should behave like str.__new__. Meaning it should accept any object as it’s argument, and our extended initialization parameters (i.e. command, arg_list) should not be allowed as positional arguments, only named arguments. | |||||
* | Add back previously removed tests for statement.args | kotfu | 2018-09-05 | 1 | -1/+1 | |
| | ||||||
* | Made it possible for editors like Pycharm to see members of Statement in tab ↵ | Kevin Van Brunt | 2018-09-05 | 1 | -40/+37 | |
| | | | | completion. This also fixed many warnings. | |||||
* | Updated comment | Kevin Van Brunt | 2018-09-01 | 1 | -3/+2 | |
| | ||||||
* | Removed unused import | Kevin Van Brunt | 2018-09-01 | 1 | -1/+1 | |
| | ||||||
* | Using empty strings and lists instead of None for default values in Statment | Kevin Van Brunt | 2018-09-01 | 1 | -64/+71 | |
| | ||||||
* | Removed Statement.args since it was redundant. Replaced with already parsed ↵ | Kevin Van Brunt | 2018-08-23 | 1 | -24/+13 | |
| | | | | list of args with quotes preserved. | |||||
* | No longer returning None from arg_list | Kevin Van Brunt | 2018-08-23 | 1 | -3/+3 | |
| | ||||||
* | Fixed bug where alias was dropping quotes | Kevin Van Brunt | 2018-08-23 | 1 | -1/+12 | |
| | ||||||
* | 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 | |
| |