Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Deprecate support for Python 3.6 and remove dependency on attrs (#1257) | Todd Leonhardt | 2023-01-31 | 1 | -28/+27 |
| | | | | | | | | | | | | | * Start deprecation of Python 3.6 * Removed dependency on attrs and replaced with dataclasses * Fix typing * Added comments to assist with dropping support of Python versions in the future. --------- Co-authored-by: Kevin Van Brunt <kmvanbrunt@gmail.com> | ||||
* | Converted persistent history files from pickle to JSON format | Kevin Van Brunt | 2021-06-14 | 1 | -0/+28 |
| | |||||
* | Updated main code to use f-strings | Kevin Van Brunt | 2021-04-13 | 1 | -4/+4 |
| | |||||
* | And that's the last of it. Passes mypy. | Eric Lin | 2021-04-06 | 1 | -12/+8 |
| | |||||
* | Replaced some pexcept() calls with perror(). | Kevin Van Brunt | 2021-04-02 | 1 | -1/+1 |
| | | | | | | Converted some strings to f-strings. Fixed some grammar in error messages and docs. Increased code coverage. | ||||
* | More things to make mypy happy. | Eric Lin | 2021-04-02 | 1 | -20/+20 |
| | |||||
* | Add in isort changes | Todd Leonhardt | 2021-01-31 | 1 | -1/+3 |
| | |||||
* | Add black for automatic code format | Todd Leonhardt | 2021-01-31 | 1 | -28/+31 |
| | |||||
* | Changed isort to force wrapping of imports to reduce merge conflicts from ↵ | Eric Lin | 2021-01-22 | 1 | -3/+15 |
| | | | | minor import changes. | ||||
* | Replace with_argparser_and_unknown_args in docs | Kyle King | 2020-11-08 | 1 | -3/+2 |
| | |||||
* | Added validation of subcommand handler attributes | Eric Lin | 2020-08-20 | 1 | -7/+12 |
| | |||||
* | Added info on semantic versioning and branching strategy to CONTRIBUTING.md | Todd Leonhardt | 2020-04-24 | 1 | -2/+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 | -5/+7 |
| | |||||
* | Add documentation for parsing classes | kotfu | 2020-02-14 | 1 | -108/+78 |
| | |||||
* | Updated center_text to support ansi escape sequences and characters with ↵ | Kevin Van Brunt | 2019-12-09 | 1 | -4/+5 |
| | | | | | | display widths greater than 1. Also added left and right justification functions. | ||||
* | Removed ability for aliases and macros to share names with commands | Kevin Van Brunt | 2019-08-05 | 1 | -15/+7 |
| | |||||
* | Added terminators to completion delimiters | Kevin Van Brunt | 2019-08-02 | 1 | -2/+2 |
| | |||||
* | Fixed inconsistent parsing/tab completion behavior based on the value of ↵ | Kevin Van Brunt | 2019-08-02 | 1 | -5/+1 |
| | | | | | | `allow_redirection`. This flag is only meant to be a security setting that prevents redirection of stdout and should not alter parsing logic. | ||||
* | Added terminators to cmd2.Cmd's docstring | Kevin Van Brunt | 2019-08-01 | 1 | -2/+2 |
| | |||||
* | Removed restriction on macros named after non-multiline commands | Kevin Van Brunt | 2019-07-23 | 1 | -4/+2 |
| | | | | Added unit tests | ||||
* | Updated docstrings | Kevin Van Brunt | 2019-07-23 | 1 | -5/+10 |
| | |||||
* | Added to a few methods to prevent the command token from being expanded | Kevin Van Brunt | 2019-07-23 | 1 | -9/+8 |
| | |||||
* | Moved the sorting of shortcuts into StatementParser which allows users to ↵ | Kevin Van Brunt | 2019-07-16 | 1 | -5/+8 |
| | | | | pass in a dictionary instead of a tuple for shortcuts. | ||||
* | 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 |
|\ \ | |/ |