summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Updated CHANGELOGEric Lin2020-08-111-1/+2
|
* Minor fixes to enable Python 3.5.2 supportEric Lin2020-08-111-2/+7
|
* Adding explicit python 3.5.2 test to nox, travisEric Lin2020-08-113-6/+14
| | | | | | | Python 3.5.2 introduced a bug in typing that was fixed in 3.5.3. The bug in typing prevents the latest nox from running properly. Ubuntu 16.04 stopped at python 3.5.2. To work-around, force an older version of nox when testing 3.5.2
* Adding explicit python 3.5.3 test to nox, travis.Eric Lin2020-08-104-2/+22
| | | | Copied 3.5.4 definition of typing.Deque
* Updated with missing doc-string for new CommandSet parameters for cmd2.Cmd's ↵Eric Lin2020-08-101-0/+8
| | | | constructor
* Will now traverse down CommandSet inheritance tree to find all leaf descendants.1.3.2Eric Lin2020-08-104-15/+81
| | | | | | CommandSet now has a check to ensure it is only registered with one cmd2.Cmd instance at a time. Adds function to find command set by type and by command name
* Merge pull request #969 from python-cmd2/subcmd_fixKevin Van Brunt2020-08-077-180/+223
|\ | | | | Subcmd fix
| * Moved a comment to better section off codeKevin Van Brunt2020-08-071-8/+8
| |
| * Minor housekeeping. Updated CODEOWNERS with recent additionsEric Lin2020-08-072-3/+15
| |
| * Removed unnecessary prog value from subcommand parsersKevin Van Brunt2020-08-071-6/+6
| |
| * Updated change logKevin Van Brunt2020-08-071-3/+9
| |
| * Moved code which copies subparser's settings to _register_subcommands().Kevin Van Brunt2020-08-074-184/+188
| | | | | | | | | | Changed alias and macro commands to use as_subcommand_to() decorator. Updated CommandSet subcommand example to use help and description text.
| * Fixed prog value of subcommands added with as_subcommand_to() decorator.Kevin Van Brunt2020-08-072-11/+32
|/ | | | Fixed missing settings in subcommand parsers created with as_subcommand_to() decorator.
* Updated CHANGELOG1.3.1Eric Lin2020-08-061-0/+7
|
* Verify that a completer function is defined in a CommandSet beforeEric Lin2020-08-0613-149/+504
| | | | | | | | | | passing it a CommandSet instance. Search for a CommandSet instance that matches the completer's parent class type.` Resolves Issue #967 Renamed isolated_tests directory to tests_isolated for better visual grouping. Added some exception documentation
* Removed obsolete argument1.3.0Kevin Van Brunt2020-08-041-1/+1
|
* Marked with_arparser_and_unknown_args deprecated and consolidatedEric Lin2020-08-0411-79/+52
| | | | implementation as an option to with_argparser instead.
* Removed remaining usages and examples with tox. Updated references to tox to ↵Eric Lin2020-08-049-33/+26
| | | | reference to nox instead.
* Minor formatting fixes. Injecting a function into namespace objects before ↵Eric Lin2020-08-048-31/+54
| | | | passing to command handlers to access sub-command handlers
* Updated changelogEric Lin2020-08-041-0/+5
|
* Now maintains a command->CommandSet mapping and passes the CommandSetanselor2020-08-047-80/+539
| | | | | | | | | | | | | | | 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.
* Ignore plugins directory when running doc8 by itself outside of invokeTodd Leonhardt2020-08-041-1/+1
|
* Updated Pipfile to do an editable/dev install of cmd2_ext_test so that "inv ↵Todd Leonhardt2020-08-041-0/+1
| | | | pytest" doesn't crash
* Fix it so py.test by itself doesn't crashTodd Leonhardt2020-08-041-0/+4
| | | | | | Change setup.cfg so that pytest only runs tests in the tests directory by default. Attempting to run tests in the isolated_tests directory was causing a crash
* Fix a couple doc8 warningsTodd Leonhardt2020-08-041-5/+7
|
* Updated documentationKevin Van Brunt2020-08-041-2/+10
|
* Updated documentationKevin Van Brunt2020-08-041-1/+5
|
* Added handling for disabled commands to CommandSet functionsKevin Van Brunt2020-08-041-6/+19
|
* Fixes to how command callables are filtered from CommandSetEric Lin2020-08-041-4/+5
|
* Fixed issue where we attempted to remove CommandSet from a list it was not inKevin Van Brunt2020-08-041-1/+2
|
* Fixed typo in documentationKevin Van Brunt2020-08-041-3/+3
|
* Removed sub-class and instead patch argparse._SubParsersActionEric Lin2020-08-043-28/+30
|
* Suggested PR Fixes.Eric Lin2020-08-047-36/+44
| | | | | sub-commande => subcommand Added help/aliases to `as_subcommand_to` decorator.
* Adds unit tests for sub-commands and additional commandset edge casesEric Lin2020-08-042-12/+187
|
* Adds support for injectable subcommands as part of CommandSetEric Lin2020-08-047-8/+396
| | | | | | load/unload. Updated examples and documentation to include discussion of injectable sub-commands.
* updated importsEric Lin2020-08-0422-48/+374
| | | | Added additional documentation
* Updates the example to remove usage of the now remove ability toEric Lin2020-08-046-66/+154
| | | | | | | | | | 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.
* Removed support for functions outside of CommandSetsEric Lin2020-08-044-308/+13
|
* Moved commandset tests into an isolated testEric Lin2020-08-044-2/+208
|
* added additional documentation for new decorator behaviorEric Lin2020-08-041-3/+24
|
* Added an additional check for isinstance(method, Callable) since there are ↵Eric Lin2020-08-041-1/+2
| | | | scenarios where inspect.ismethod() fails for some reason
* Adjusted decorators to accept variable positional parametersEric Lin2020-08-041-18/+41
|
* cleanupEric Lin2020-08-041-7/+7
|
* Sort imports using isortTodd Leonhardt2020-08-044-14/+6
|
* Appears to be a type hinting olution that works for flake, sphinx, and PyCharmEric Lin2020-08-041-8/+11
|
* Added more command validation. Moved some common behavior into private ↵Eric Lin2020-08-043-36/+101
| | | | functions.
* Added explicit tests for dir and setattr. Minor type hinting changesEric Lin2020-08-041-0/+24
|
* Fixes to sphinx generationEric Lin2020-08-044-2/+8
|
* Fixes issue with locating help_ annd complete_ functions when autoloading ↵Eric Lin2020-08-044-36/+188
| | | | | | command functions Adds handling of some edge cases. More thorough test coverage.
* add ability to remove commands and commandsetsEric Lin2020-08-044-8/+148
| | | | Issue #943