Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Restore self.statement_parser to a public attribute in cmd2.Cmd | Todd Leonhardt | 2019-07-10 | 1 | -1/+1 |
| | |||||
* | Removed unneeded (optional) text from docstrings | Kevin Van Brunt | 2019-06-26 | 1 | -5/+5 |
| | |||||
* | Fixed a few comments where "redirecting" accidentally got changed to ↵ | Todd Leonhardt | 2019-06-15 | 1 | -1/+1 |
| | | | | "_redirecting" | ||||
* | Began work to minimize public API | Todd Leonhardt | 2019-06-15 | 1 | -2/+2 |
| | |||||
* | Preserving originally typed quotes of Statement.output_to for use in ↵ | Kevin Van Brunt | 2019-05-13 | 1 | -4/+5 |
| | | | | Statement.post_command() | ||||
* | Fixed parsing issue in case where output redirection (e.g. > file) appears ↵ | Kevin Van Brunt | 2019-05-13 | 1 | -36/+34 |
| | | | | | | before a pipe. In that case, the pipe was given precedence even though it appeared later in the command. | ||||
* | Added capability to redirect pipe commands and chain them together | Kevin Van Brunt | 2019-05-07 | 1 | -11/+11 |
| | |||||
* | Merge branch 'master' into macro_refactor | Kevin Van Brunt | 2019-05-06 | 1 | -3/+1 |
|\ | |||||
| * | Fixed issue where the wrong terminator was being appended by ↵ | Kevin Van Brunt | 2019-05-06 | 1 | -3/+1 |
| | | | | | | | | Statement.expanded_command_line() | ||||
* | | Refactored alias resolution to get code coverage back to 100% | Kevin Van Brunt | 2019-05-06 | 1 | -11/+13 |
| | | |||||
* | | Macro resolution now occurs during parsing | Kevin Van Brunt | 2019-05-02 | 1 | -21/+25 |
|/ | |||||
* | No longer appending \n to commands run by PyscriptBridge. This messes up ↵ | Kevin Van Brunt | 2019-03-19 | 1 | -1/+1 |
| | | | | | | redirection parsing of non-multiline commands. | ||||
* | Merge branch 'master' into attributes | Todd Leonhardt | 2019-03-17 | 1 | -39/+53 |
|\ | |||||
| * | Updated docs and example | Kevin Van Brunt | 2019-03-17 | 1 | -2/+2 |
| | | |||||
| * | Updated documentation | Kevin Van Brunt | 2019-03-16 | 1 | -6/+8 |
| | | |||||
| * | Added Statement object to argparse Namespace passed to wrapped functions | Kevin Van Brunt | 2019-03-16 | 1 | -39/+51 |
| | | |||||
* | | Aliases are now stored within the StatementParser instance | Todd Leonhardt | 2019-03-16 | 1 | -3/+3 |
| | | | | | | | | | | | | | | Also: - Added read-only aliases property to cmd2.Cmd to get aliases from the StatementParser - Added a setter for the allow_redirection property in cmd2.Cmd - Made some initialization code more self-documenting | ||||
* | | Improved type hints and documentation in StatementParser.__init__() | Todd Leonhardt | 2019-03-14 | 1 | -9/+20 |
| | | |||||
* | | Made several attributes of StatementParser immutable | Todd Leonhardt | 2019-03-14 | 1 | -6/+6 |
|/ | | | | | | | The following attributes within StatementParser were converted from mutable lists to immutable tuples: - terminators - multiline_commands - shortcuts | ||||
* | Updated a comment and moved an import | Kevin Van Brunt | 2019-03-06 | 1 | -1/+1 |
| | |||||
* | Moved some utility functions from cmd2.py to parsing.py | Todd Leonhardt | 2019-03-05 | 1 | -12/+40 |
| | |||||
* | Added a shlex.split() wrapper to have a common way of calling it. | Kevin Van Brunt | 2019-03-05 | 1 | -1/+11 |
| | | | | Replaced parse_quoted_string with _get_command_arg_list. | ||||
* | Merged master into history and resolved conflicts | Todd Leonhardt | 2019-03-04 | 1 | -44/+10 |
|\ | |||||
| * | Removed support for c-style and embedded comments | Kevin Van Brunt | 2019-03-01 | 1 | -44/+10 |
| | | |||||
* | | Fixed a couple bugs and added unit tests | Todd Leonhardt | 2019-03-03 | 1 | -1/+3 |
| | | |||||
* | | Potential fixes for outstanding multi-line issues in history command | Todd Leonhardt | 2019-03-03 | 1 | -3/+3 |
| | | |||||
* | | Merge branch 'master' into history | Kevin Van Brunt | 2018-12-06 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | Fix flake8 issues | Todd Leonhardt | 2018-12-06 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | | First version of adding an expanded option to history items | Kevin Van Brunt | 2018-12-03 | 1 | -0/+20 |
|/ | |||||
* | 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 |
| |