Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add in isort changes | Todd Leonhardt | 2021-01-31 | 1 | -2/+6 |
| | |||||
* | Attempt to fix remaining black failures | Todd Leonhardt | 2021-01-31 | 1 | -10/+80 |
| | |||||
* | Add black for automatic code format | Todd Leonhardt | 2021-01-31 | 1 | -140/+123 |
| | |||||
* | Changed isort to force wrapping of imports to reduce merge conflicts from ↵ | Eric Lin | 2021-01-22 | 1 | -2/+9 |
| | | | | minor import changes. | ||||
* | Minor formatting changes. Fixed some inaccurate comments | Eric Lin | 2020-08-20 | 1 | -19/+72 |
| | |||||
* | Updated documentation with more explicit discussions on testing | Eric Lin | 2020-08-20 | 1 | -1/+14 |
| | | | | Added unit test to verify command name validation updates. | ||||
* | Added info on semantic versioning and branching strategy to CONTRIBUTING.md | Todd Leonhardt | 2020-04-24 | 1 | -0/+1 |
| | | | | | | | Also: - Added isort to Pipenv dev - Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke - Ran isort to sort includes | ||||
* | Added Cmd2ShlexError | Kevin Van Brunt | 2020-03-12 | 1 | -2/+2 |
| | |||||
* | Moved custom cmd2 exceptions to a separate file and removed them from public API | Todd Leonhardt | 2020-02-18 | 1 | -3/+3 |
| | |||||
* | Removed ability for aliases and macros to share names with commands | Kevin Van Brunt | 2019-08-05 | 1 | -8/+0 |
| | |||||
* | Fixed inconsistent parsing/tab completion behavior based on the value of ↵ | Kevin Van Brunt | 2019-08-02 | 1 | -1/+0 |
| | | | | | | `allow_redirection`. This flag is only meant to be a security setting that prevents redirection of stdout and should not alter parsing logic. | ||||
* | Moved the sorting of shortcuts into StatementParser which allows users to ↵ | Kevin Van Brunt | 2019-07-16 | 1 | -1/+1 |
| | | | | pass in a dictionary instead of a tuple for shortcuts. | ||||
* | Fixed unit tests | Kevin Van Brunt | 2019-06-15 | 1 | -3/+3 |
| | |||||
* | Merge branch 'master' into history_fixes | Kevin Van Brunt | 2019-06-14 | 1 | -3/+0 |
|\ | |||||
| * | Removed copyright headers from source files and updated LICENSE with current ↵ | Kevin Van Brunt | 2019-06-07 | 1 | -3/+0 |
| | | | | | | | | year | ||||
* | | Fix history display issues | Todd Leonhardt | 2019-06-13 | 1 | -0/+12 |
|/ | | | | | | | | | | | Issues were two fold: - HistoryItem statement.raw was getting mangled for multiline commands due to macro-related changes in _input_line_to_statement() - HistoryItem pretty printing wasn't using rstrip() anymore in verbose mode I added a couple unit tests in the process of getting here. But we should add some explicit unit tests of _input_line_to_statement() for cases like: - basic single-line command - macro single-line command - multiline command | ||||
* | Added unit tests | Kevin Van Brunt | 2019-05-13 | 1 | -0/+28 |
| | |||||
* | Added unit tests | Kevin Van Brunt | 2019-05-13 | 1 | -1/+99 |
| | |||||
* | Added capability to redirect pipe commands and chain them together | Kevin Van Brunt | 2019-05-07 | 1 | -17/+16 |
| | |||||
* | Fixed issue where the wrong terminator was being appended by ↵ | Kevin Van Brunt | 2019-05-06 | 1 | -1/+0 |
| | | | | Statement.expanded_command_line() | ||||
* | Made unit test more correct | Kevin Van Brunt | 2019-03-17 | 1 | -4/+5 |
| | |||||
* | Added unit tests for expand flag of parse() | Kevin Van Brunt | 2019-03-17 | 1 | -0/+7 |
| | |||||
* | Merged master into history and resolved conflicts | Todd Leonhardt | 2019-03-04 | 1 | -76/+19 |
|\ | |||||
| * | Removed support for c-style and embedded comments | Kevin Van Brunt | 2019-03-01 | 1 | -75/+19 |
| | | |||||
* | | Fixed a couple bugs and added unit tests | Todd Leonhardt | 2019-03-03 | 1 | -1/+8 |
|/ | |||||
* | Fix flake8 issues | Todd Leonhardt | 2018-12-06 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | This commit contains a very large number of trivial changes in order to fix flake8 errors and warnings. Predominantly these are whitespace changes. Additionally, the build for Python 3.7 on TravisCI has been tweaked to fail if there are any flake8 errors using the following commandline: * flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics NOTE: In the future the max cyclomatic complexity should be lowered, but some improvements need to be made first. One flake8 error is being ignored entirely: * E252 missing whitespace around parameter equals * ignored because it doesn't correctly deal with default argument values after a type hint A few flake8 errors are being selectively ignored in certain files: * C901 fuction is too complex * ignored in argparse_completer.py because the complex code is an override of argparse complexity * E302 expected 2 blank lines after ... * ignored in all unit test files for convenience * F401 module imported but unused * ignored in cmd2/__init__.py because imports are for convenience of cmd2 developers and backwards compatibility * F821 undefined name * ignored in cmd2 script files which are intended to run only within cmd2 applications via pyscript where "app" and "cmd" are defined | ||||
* | Added unit test for valid case of calling is_valid_command() | Todd Leonhardt | 2018-10-03 | 1 | -6/+12 |
| | |||||
* | Added unit test for is_valid_command | Kevin Van Brunt | 2018-10-03 | 1 | -0/+26 |
| | |||||
* | Fixed bug in handling unicode digits in macro arguments | Kevin Van Brunt | 2018-09-27 | 1 | -0/+8 |
| | |||||
* | Added unit tests for MacroArg regular expressions | Kevin Van Brunt | 2018-09-27 | 1 | -0/+93 |
| | |||||
* | Fix bug in `parse_command_only` | kotfu | 2018-09-09 | 1 | -33/+76 |
| | | | | More robust unit tests identified a bug, which is also fixed in this commit. | ||||
* | Took a stab at improving documentation and unit tests for ↵ | Todd Leonhardt | 2018-09-08 | 1 | -10/+50 |
| | | | | | | Statement.parse_command_only() Also slightly improved a few other unit tests | ||||
* | Use attrs on Statement object to do immutability | Todd Leonhardt | 2018-09-06 | 1 | -1/+15 |
| | |||||
* | Add back previously removed tests for statement.args | kotfu | 2018-09-05 | 1 | -2/+45 |
| | |||||
* | Using empty strings and lists instead of None for default values in Statment | Kevin Van Brunt | 2018-09-01 | 1 | -27/+30 |
| | |||||
* | Removed Statement.args since it was redundant. Replaced with already parsed ↵ | Kevin Van Brunt | 2018-08-23 | 1 | -98/+83 |
| | | | | list of args with quotes preserved. | ||||
* | parse_command_only now appropriately sets multiline_command | kotfu | 2018-08-08 | 1 | -0/+10 |
| | |||||
* | Add unit tests to validate embedded newline parsing | kotfu | 2018-08-06 | 1 | -1/+18 |
| | |||||
* | Merged master with bug fix for #474 | Todd Leonhardt | 2018-07-17 | 1 | -5/+18 |
|\ | |||||
| * | Bug fix and unit tests for #474 | kotfu | 2018-07-16 | 1 | -4/+18 |
| | | |||||
* | | Add tests for StatementParser() created with no arguments. | kotfu | 2018-07-15 | 1 | -0/+26 |
| | | |||||
* | | More assertions to check for string value of statement | kotfu | 2018-06-03 | 1 | -16/+79 |
|/ | |||||
* | Standardize cmd2 imports in tests and examples | kotfu | 2018-05-23 | 1 | -2/+1 |
| | |||||
* | Fix bug in sequential terminator logic | kotfu | 2018-05-17 | 1 | -2/+2 |
| | |||||
* | Add unit tests to check for multiple terminators | kotfu | 2018-05-16 | 1 | -2/+36 |
| | |||||
* | Remove cmd2.Cmd.redirector for #381 | kotfu | 2018-05-10 | 1 | -8/+9 |
| | |||||
* | Make alias checking and command parsing use the same regex | kotfu | 2018-05-07 | 1 | -0/+24 |
| | | | | | | | | 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. | ||||
* | Add unit tests to ensure multiple terminator chars works | kotfu | 2018-05-06 | 1 | -16/+26 |
| | |||||
* | Rename unit test | kotfu | 2018-05-06 | 1 | -1/+1 |
| | |||||
* | Add more unit tests | kotfu | 2018-05-06 | 1 | -5/+14 |
| |