Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed issue where instantiating more than one cmd2-based class which uses ↵duplicate_subcommand | Kevin Van Brunt | 2020-09-30 | 1 | -11/+13 |
| | | | | | | the @as_subcommand_to decorator resulted in duplicated help text in the base command the subcommands belong to. | ||||
* | The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵ | Kevin Van Brunt | 2020-08-26 | 1 | -1/+19 |
| | | | | | | | are now Cmd2AttributeWrapper objects named cmd2_statement and cmd2_handler. This makes it easy to filter out which attributes in an argparse.Namespace were added by cmd2. | ||||
* | Fixed bug when trying to format help text of argument which used a tuple as ↵ | Kevin Van Brunt | 2020-08-12 | 1 | -18/+27 |
| | | | | its metavar | ||||
* | Breaking change: Removed cmd2 app as a required second parameter to | Eric Lin | 2020-08-12 | 1 | -9/+2 |
| | | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set. | ||||
* | Minor formatting fixes. Injecting a function into namespace objects before ↵ | Eric Lin | 2020-08-04 | 1 | -1/+0 |
| | | | | passing to command handlers to access sub-command handlers | ||||
* | Now maintains a command->CommandSet mapping and passes the CommandSet | anselor | 2020-08-04 | 1 | -11/+35 |
| | | | | | | | | | | | | | | | 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. | ||||
* | Updated documentation | Kevin Van Brunt | 2020-08-04 | 1 | -2/+10 |
| | |||||
* | Updated documentation | Kevin Van Brunt | 2020-08-04 | 1 | -1/+5 |
| | |||||
* | Fixed typo in documentation | Kevin Van Brunt | 2020-08-04 | 1 | -3/+3 |
| | |||||
* | Removed sub-class and instead patch argparse._SubParsersAction | Eric Lin | 2020-08-04 | 1 | -24/+26 |
| | |||||
* | Suggested PR Fixes. | Eric Lin | 2020-08-04 | 1 | -1/+1 |
| | | | | | 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 | -2/+30 |
| | | | | | | load/unload. Updated examples and documentation to include discussion of injectable sub-commands. | ||||
* | Updates the example to remove usage of the now remove ability to | Eric Lin | 2020-08-04 | 1 | -5/+26 |
| | | | | | | | | | | register arbitrary functions as commands. Added example that demonstrates use of each of the command decorators with CommandSets. Adds unit test that verifies that CommandSets containing decorators load and process commands correctly. Updated the constructor declaration for Cmd2ArgumentParser to explicitly re-declare argparse constructor parameters. | ||||
* | Added info on semantic versioning and branching strategy to CONTRIBUTING.md | Todd Leonhardt | 2020-04-24 | 1 | -1/+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 | ||||
* | Completion doc updates | Kevin Van Brunt | 2020-04-23 | 1 | -12/+9 |
| | |||||
* | Merge branch 'master' into table_creator | Kevin Van Brunt | 2020-04-22 | 1 | -1/+1 |
|\ | |||||
| * | Consistently use :raises: instead of :raises (make sure there is a trailing ↵ | Todd Leonhardt | 2020-04-20 | 1 | -1/+1 |
| | | | | | | | | colon) | ||||
* | | Initial commit of table creation API | Kevin Van Brunt | 2020-04-09 | 1 | -11/+8 |
|/ | |||||
* | Removed duplicate word and capitalized two comment sentences | Kevin Van Brunt | 2020-02-25 | 1 | -2/+2 |
| | |||||
* | Add argparse stuff to api | kotfu | 2020-02-22 | 1 | -142/+173 |
| | |||||
* | Made CompletionError exception available to non-argparse tab completion | Kevin Van Brunt | 2020-02-17 | 1 | -18/+0 |
| | |||||
* | Renamed AutoCompleter to ArgparseCompleter for clarity | Kevin Van Brunt | 2020-02-17 | 1 | -12/+12 |
| | |||||
* | Removed dash from 'tab complete' string | Kevin Van Brunt | 2020-02-13 | 1 | -7/+7 |
| | |||||
* | Removed repeated Pycharm warning suppression | Kevin Van Brunt | 2020-02-07 | 1 | -1/+1 |
| | |||||
* | Renamed ansi_safe_wcswidth() to style_aware_wcswidth() | Kevin Van Brunt | 2019-12-19 | 1 | -2/+2 |
| | | | | Renamed ansi_aware_write() to style_aware_write() | ||||
* | Fixed typo in documentation | Kevin Van Brunt | 2019-12-04 | 1 | -1/+1 |
| | |||||
* | Fixed bug where a redefined ansi.style_error was not being used in all cmd2 ↵ | Kevin Van Brunt | 2019-11-27 | 1 | -3/+3 |
| | | | | files | ||||
* | Added documentation | Kevin Van Brunt | 2019-11-24 | 1 | -1/+2 |
| | |||||
* | Added capability to override the argument parser class used by cmd2 built-in ↵ | Kevin Van Brunt | 2019-11-19 | 1 | -1/+11 |
| | | | | commands | ||||
* | Added unit tests for CompletionError | Kevin Van Brunt | 2019-09-23 | 1 | -3/+10 |
| | |||||
* | Added CompletionError exception class | Kevin Van Brunt | 2019-09-20 | 1 | -0/+11 |
| | |||||
* | Changed arg_tokens to a dictionary | Kevin Van Brunt | 2019-09-16 | 1 | -4/+4 |
| | | | | Including tokens from parent parsers in arg_tokens when subcommands are used | ||||
* | Updated documentation | Kevin Van Brunt | 2019-09-13 | 1 | -0/+14 |
| | |||||
* | AutoCompleter only passes parsed_args to choices/completer functions that ↵ | Kevin Van Brunt | 2019-08-27 | 1 | -3/+3 |
| | | | | have an argument called 'parsed_args' | ||||
* | AutoCompleter now passes parsed_args to all choices and completer functions | Kevin Van Brunt | 2019-08-22 | 1 | -28/+16 |
| | |||||
* | Fixed comment | Kevin Van Brunt | 2019-08-19 | 1 | -1/+1 |
| | |||||
* | Added capability for an argparse-based command's completer/choice functions ↵ | Kevin Van Brunt | 2019-08-13 | 1 | -21/+30 |
| | | | | | | | to receive a namespace of all arguments parsed up to token being completed. This will make it easier to have a previous argument's value affect what data is tab-completed. | ||||
* | Added functions to manually add choice providing functions to an argparse ↵ | Kevin Van Brunt | 2019-08-05 | 1 | -21/+67 |
| | | | | action. | ||||
* | Raising exception when a choices or completer function is used for an ↵ | Kevin Van Brunt | 2019-07-29 | 1 | -4/+8 |
| | | | | argument that takes no values | ||||
* | Fixed comment | Kevin Van Brunt | 2019-07-22 | 1 | -1/+1 |
| | |||||
* | Added comment | Kevin Van Brunt | 2019-07-21 | 1 | -2/+6 |
| | |||||
* | Added constants for some hardcoded strings | Kevin Van Brunt | 2019-07-20 | 1 | -3/+3 |
| | |||||
* | Changed all uses of sub-command to subcommand | Kevin Van Brunt | 2019-07-19 | 1 | -2/+2 |
| | |||||
* | Renamed ArgParser to Cmd2ArgumentParser to make it clear it's a derived ↵ | Kevin Van Brunt | 2019-07-18 | 1 | -5/+5 |
| | | | | | | class of argparse.ArgumentParser when developers read the code in cmd2.py. | ||||
* | 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. | ||||
* | Changed format of help where nargs is a number greater than 1 | Kevin Van Brunt | 2019-07-15 | 1 | -0/+2 |
| | |||||
* | Added ability to specify nargs ranges with no upper bound | Kevin Van Brunt | 2019-07-15 | 1 | -13/+70 |
| | |||||
* | Updated documentation | Kevin Van Brunt | 2019-07-15 | 1 | -2/+2 |
| | |||||
* | Renamed Cmd2ArgParser to ArgParser | Kevin Van Brunt | 2019-07-12 | 1 | -3/+3 |
| | |||||
* | Changed how re is being imported | Kevin Van Brunt | 2019-07-11 | 1 | -5/+5 |
| |