Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-09-17 | 1 | -0/+1 |
|\ | |||||
| * | Changes default category to be heritable by default - meaning that ↵ | Eric Lin | 2020-09-11 | 1 | -0/+1 |
| | | | | | | | | | | | | subclasses will inherit the parent class's default category. Adds optional flag to disable heritability. | ||||
* | | Removed Namespace.__statement__ | Kevin Van Brunt | 2020-08-27 | 1 | -1/+0 |
|/ | |||||
* | Fixed RecursionError when printing an argparse.Namespace caused by custom ↵ | Kevin Van Brunt | 2020-08-25 | 1 | -7/+4 |
| | | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute | ||||
* | Moved code which copies subparser's settings to _register_subcommands(). | Kevin Van Brunt | 2020-08-07 | 1 | -1/+1 |
| | | | | | Changed alias and macro commands to use as_subcommand_to() decorator. Updated CommandSet subcommand example to use help and description text. | ||||
* | Minor formatting fixes. Injecting a function into namespace objects before ↵ | Eric Lin | 2020-08-04 | 1 | -0/+3 |
| | | | | passing to command handlers to access sub-command handlers | ||||
* | Now maintains a command->CommandSet mapping and passes the CommandSet | anselor | 2020-08-04 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | through to the ArgparseCompleter if one is registered. For subcommands, the registered argparse instance for the subcommand is now tagged with the CommandSet from which it originated. If a CommandSet is detected, it's now passed in as 'self' for the completion functions. Fixes some issue found with removing a subcommand. Adds additional tests. Added a check to prevent removal of a CommandSet if it has commands with sub-commands from another CommandSet bound to it. Documentation improvements. Standardized around using CommandSetRegistrationException during commandset install/uninstall related errors. Added support for nested sub-command injection. | ||||
* | Suggested PR Fixes. | Eric Lin | 2020-08-04 | 1 | -1/+2 |
| | | | | | sub-commande => subcommand Added help/aliases to `as_subcommand_to` decorator. | ||||
* | Adds support for injectable subcommands as part of CommandSet | Eric Lin | 2020-08-04 | 1 | -0/+4 |
| | | | | | | load/unload. Updated examples and documentation to include discussion of injectable sub-commands. | ||||
* | Initial commit of table creation API | Kevin Van Brunt | 2020-04-09 | 1 | -0/+1 |
| | |||||
* | Add API documentation for constants | kotfu | 2020-02-15 | 1 | -3/+7 |
| | |||||
* | Replaced unicode escape sequence for horizontal ellipsis with actual character | Kevin Van Brunt | 2020-02-11 | 1 | -1/+3 |
| | |||||
* | Fixed bug where ANSI style sequences were not correctly handled in ↵ | Kevin Van Brunt | 2020-02-11 | 1 | -0/+1 |
| | | | | utils.truncate_line() | ||||
* | Moving a bit of code around to shrink cmd2.py | Kevin Van Brunt | 2019-10-31 | 1 | -0/+25 |
| | | | | | This includes moving cmd2 decorators into a new file called decorators.py Moved some constants from cmd2.py to constants.py | ||||
* | Made allow_ansi an application-wide setting and moved it to ansi.py | Kevin Van Brunt | 2019-06-27 | 1 | -5/+0 |
| | |||||
* | Renamed colors setting to allow_ansi | Kevin Van Brunt | 2019-06-26 | 1 | -1/+1 |
| | |||||
* | Moved code related to ANSI escape codes to new file called ansi.py | Kevin Van Brunt | 2019-06-26 | 1 | -65/+5 |
| | |||||
* | Added bold and underline to style() | Kevin Van Brunt | 2019-06-26 | 1 | -0/+10 |
| | |||||
* | Fix flake8 errors, don't use Style.RESET, fix docstring, change some ↵ | Daniel Ahn | 2019-06-24 | 1 | -2/+0 |
| | | | | pexcept() calls to perror() | ||||
* | Initial Commit for Issue 698 | xNinjaKittyx | 2019-06-24 | 1 | -0/+47 |
| | |||||
* | Began work to minimize public API | Todd Leonhardt | 2019-06-15 | 1 | -0/+2 |
| | |||||
* | Fixed flake8 error | Kevin Van Brunt | 2019-06-13 | 1 | -1/+0 |
| | |||||
* | Reverted making constant values for colors. This will be done on a future ↵ | Kevin Van Brunt | 2019-06-13 | 1 | -6/+0 |
| | | | | ticket. | ||||
* | Made constants for color values | Kevin Van Brunt | 2019-06-12 | 1 | -1/+8 |
| | |||||
* | Merged master into history and resolved conflicts | Todd Leonhardt | 2019-03-04 | 1 | -0/+1 |
|\ | |||||
| * | Removed support for c-style and embedded comments | Kevin Van Brunt | 2019-03-01 | 1 | -0/+1 |
| | | |||||
* | | Potential fixes for outstanding multi-line issues in history command | Todd Leonhardt | 2019-03-03 | 1 | -0/+1 |
|/ | |||||
* | First pass at improved colorizing | kotfu | 2018-08-11 | 1 | -0/+5 |
| | | | | | - colors setting now allows Always, Terminal, Never values - poutput() and perror() honor these new settings | ||||
* | Move LINE_FEED into constants | kotfu | 2018-07-07 | 1 | -0/+2 |
| | |||||
* | Get rid of last hard-coded redirection constants | kotfu | 2018-05-10 | 1 | -0/+1 |
| | |||||
* | Remove cmd2.Cmd.redirector for #381 | kotfu | 2018-05-10 | 1 | -2/+6 |
| | |||||
* | Remove ‘<‘ from REDIRECTION_CHARS, it’s no longer used. | kotfu | 2018-04-27 | 1 | -1/+1 |
| | |||||
* | Create utils module for utility functions | kotfu | 2018-04-27 | 1 | -0/+5 |
| | |||||
* | Move constants into a separate file. | kotfu | 2018-04-27 | 1 | -0/+7 |