summaryrefslogtreecommitdiff
path: root/cmd2/constants.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into 2.0Kevin Van Brunt2020-09-171-0/+1
|\
| * Changes default category to be heritable by default - meaning that ↵Eric Lin2020-09-111-0/+1
| | | | | | | | | | | | subclasses will inherit the parent class's default category. Adds optional flag to disable heritability.
* | Removed Namespace.__statement__Kevin Van Brunt2020-08-271-1/+0
|/
* Fixed RecursionError when printing an argparse.Namespace caused by custom ↵Kevin Van Brunt2020-08-251-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 Brunt2020-08-071-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 Lin2020-08-041-0/+3
| | | | passing to command handlers to access sub-command handlers
* Now maintains a command->CommandSet mapping and passes the CommandSetanselor2020-08-041-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 Lin2020-08-041-1/+2
| | | | | sub-commande => subcommand Added help/aliases to `as_subcommand_to` decorator.
* Adds support for injectable subcommands as part of CommandSetEric Lin2020-08-041-0/+4
| | | | | | load/unload. Updated examples and documentation to include discussion of injectable sub-commands.
* Initial commit of table creation APIKevin Van Brunt2020-04-091-0/+1
|
* Add API documentation for constantskotfu2020-02-151-3/+7
|
* Replaced unicode escape sequence for horizontal ellipsis with actual characterKevin Van Brunt2020-02-111-1/+3
|
* Fixed bug where ANSI style sequences were not correctly handled in ↵Kevin Van Brunt2020-02-111-0/+1
| | | | utils.truncate_line()
* Moving a bit of code around to shrink cmd2.pyKevin Van Brunt2019-10-311-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.pyKevin Van Brunt2019-06-271-5/+0
|
* Renamed colors setting to allow_ansiKevin Van Brunt2019-06-261-1/+1
|
* Moved code related to ANSI escape codes to new file called ansi.pyKevin Van Brunt2019-06-261-65/+5
|
* Added bold and underline to style()Kevin Van Brunt2019-06-261-0/+10
|
* Fix flake8 errors, don't use Style.RESET, fix docstring, change some ↵Daniel Ahn2019-06-241-2/+0
| | | | pexcept() calls to perror()
* Initial Commit for Issue 698xNinjaKittyx2019-06-241-0/+47
|
* Began work to minimize public APITodd Leonhardt2019-06-151-0/+2
|
* Fixed flake8 errorKevin Van Brunt2019-06-131-1/+0
|
* Reverted making constant values for colors. This will be done on a future ↵Kevin Van Brunt2019-06-131-6/+0
| | | | ticket.
* Made constants for color valuesKevin Van Brunt2019-06-121-1/+8
|
* Merged master into history and resolved conflictsTodd Leonhardt2019-03-041-0/+1
|\
| * Removed support for c-style and embedded commentsKevin Van Brunt2019-03-011-0/+1
| |
* | Potential fixes for outstanding multi-line issues in history commandTodd Leonhardt2019-03-031-0/+1
|/
* First pass at improved colorizingkotfu2018-08-111-0/+5
| | | | | - colors setting now allows Always, Terminal, Never values - poutput() and perror() honor these new settings
* Move LINE_FEED into constantskotfu2018-07-071-0/+2
|
* Get rid of last hard-coded redirection constantskotfu2018-05-101-0/+1
|
* Remove cmd2.Cmd.redirector for #381kotfu2018-05-101-2/+6
|
* Remove ‘<‘ from REDIRECTION_CHARS, it’s no longer used.kotfu2018-04-271-1/+1
|
* Create utils module for utility functionskotfu2018-04-271-0/+5
|
* Move constants into a separate file.kotfu2018-04-271-0/+7