Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Updated change log for release1.3.6 | Kevin Van Brunt | 2020-08-27 | 1 | -1/+1 |
| | |||||
* | Merge pull request #985 from python-cmd2/dynamic_value | Kevin Van Brunt | 2020-08-27 | 14 | -41/+86 |
|\ | | | | | Added Cmd2AttributeWrapper class | ||||
| * | The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵ | Kevin Van Brunt | 2020-08-26 | 14 | -41/+86 |
|/ | | | | | | | 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. | ||||
* | Updated change log and docs for release1.3.5 | Kevin Van Brunt | 2020-08-25 | 2 | -1/+16 |
| | |||||
* | Merge pull request #984 from python-cmd2/recursion_error | Kevin Van Brunt | 2020-08-25 | 8 | -17/+48 |
|\ | | | | | Fixed RecursionError when printing an argparse.Namespace | ||||
| * | Fixed RecursionError when printing an argparse.Namespace caused by custom ↵ | Kevin Van Brunt | 2020-08-25 | 8 | -17/+48 |
|/ | | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute | ||||
* | Fixed typo | Kevin Van Brunt | 2020-08-21 | 1 | -1/+1 |
| | |||||
* | Updated change log for release1.3.4 | Kevin Van Brunt | 2020-08-20 | 1 | -1/+5 |
| | |||||
* | Merge pull request #980 from python-cmd2/move_module_loading | Kevin Van Brunt | 2020-08-20 | 14 | -52/+336 |
|\ | | | | | Fixed AttributeError when loading CommandSet | ||||
| * | Added tests for invalid subcommands | Eric Lin | 2020-08-20 | 2 | -0/+90 |
| | | |||||
| * | Minor formatting changes. Fixed some inaccurate comments | Eric Lin | 2020-08-20 | 1 | -19/+72 |
| | | |||||
| * | Updated documentation with more explicit discussions on testing | Eric Lin | 2020-08-20 | 9 | -9/+95 |
| | | | | | | | | Added unit test to verify command name validation updates. | ||||
| * | Added validation of subcommand handler attributes | Eric Lin | 2020-08-20 | 2 | -8/+17 |
| | | |||||
| * | Fixed AttributeError when CommandSet that uses as_subcommand_to decorator is ↵ | Kevin Van Brunt | 2020-08-19 | 3 | -16/+62 |
|/ | | | | loaded during cmd2.Cmd.__init__(). | ||||
* | Updated changelog with 1.3.3 release date1.3.3 | Kevin Van Brunt | 2020-08-13 | 1 | -1/+1 |
| | |||||
* | Merge pull request #975 from python-cmd2/help_format_fix | Kevin Van Brunt | 2020-08-13 | 5 | -38/+133 |
|\ | | | | | Fix tuple metavar crash in Cmd2HelpFormatter and ArgparseCompleter | ||||
| * | Fixed tab completion bug when using CompletionItem on an argument whose ↵ | Kevin Van Brunt | 2020-08-13 | 3 | -20/+98 |
| | | | | | | | | metavar is a tuple | ||||
| * | Fixed changelog comment | Todd Leonhardt | 2020-08-12 | 1 | -1/+1 |
| | | |||||
| * | Add unit test and update CHANGELOG | Todd Leonhardt | 2020-08-12 | 2 | -0/+8 |
| | | |||||
| * | 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 | ||||
* | When passing a ns_provider to an argparse command, will now attempt to ↵ | Eric Lin | 2020-08-12 | 6 | -49/+96 |
| | | | | resolve the correct CommandSet instance for self. If not, it'll fall back and pass in the cmd2 app | ||||
* | Breaking change: Removed cmd2 app as a required second parameter to | Eric Lin | 2020-08-12 | 15 | -288/+229 |
| | | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set. | ||||
* | Updated CHANGELOG | Eric Lin | 2020-08-11 | 1 | -1/+2 |
| | |||||
* | Minor fixes to enable Python 3.5.2 support | Eric Lin | 2020-08-11 | 1 | -2/+7 |
| | |||||
* | Adding explicit python 3.5.2 test to nox, travis | Eric Lin | 2020-08-11 | 3 | -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 Lin | 2020-08-10 | 4 | -2/+22 |
| | | | | Copied 3.5.4 definition of typing.Deque | ||||
* | Updated with missing doc-string for new CommandSet parameters for cmd2.Cmd's ↵ | Eric Lin | 2020-08-10 | 1 | -0/+8 |
| | | | | constructor | ||||
* | Will now traverse down CommandSet inheritance tree to find all leaf descendants.1.3.2 | Eric Lin | 2020-08-10 | 4 | -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_fix | Kevin Van Brunt | 2020-08-07 | 7 | -180/+223 |
|\ | | | | | Subcmd fix | ||||
| * | Moved a comment to better section off code | Kevin Van Brunt | 2020-08-07 | 1 | -8/+8 |
| | | |||||
| * | Minor housekeeping. Updated CODEOWNERS with recent additions | Eric Lin | 2020-08-07 | 2 | -3/+15 |
| | | |||||
| * | Removed unnecessary prog value from subcommand parsers | Kevin Van Brunt | 2020-08-07 | 1 | -6/+6 |
| | | |||||
| * | Updated change log | Kevin Van Brunt | 2020-08-07 | 1 | -3/+9 |
| | | |||||
| * | Moved code which copies subparser's settings to _register_subcommands(). | Kevin Van Brunt | 2020-08-07 | 4 | -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 Brunt | 2020-08-07 | 2 | -11/+32 |
|/ | | | | Fixed missing settings in subcommand parsers created with as_subcommand_to() decorator. | ||||
* | Updated CHANGELOG1.3.1 | Eric Lin | 2020-08-06 | 1 | -0/+7 |
| | |||||
* | Verify that a completer function is defined in a CommandSet before | Eric Lin | 2020-08-06 | 13 | -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.0 | Kevin Van Brunt | 2020-08-04 | 1 | -1/+1 |
| | |||||
* | Marked with_arparser_and_unknown_args deprecated and consolidated | Eric Lin | 2020-08-04 | 11 | -79/+52 |
| | | | | implementation as an option to with_argparser instead. | ||||
* | Removed remaining usages and examples with tox. Updated references to tox to ↵ | Eric Lin | 2020-08-04 | 9 | -33/+26 |
| | | | | reference to nox instead. | ||||
* | Minor formatting fixes. Injecting a function into namespace objects before ↵ | Eric Lin | 2020-08-04 | 8 | -31/+54 |
| | | | | passing to command handlers to access sub-command handlers | ||||
* | Updated changelog | Eric Lin | 2020-08-04 | 1 | -0/+5 |
| | |||||
* | Now maintains a command->CommandSet mapping and passes the CommandSet | anselor | 2020-08-04 | 7 | -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 invoke | Todd Leonhardt | 2020-08-04 | 1 | -1/+1 |
| | |||||
* | Updated Pipfile to do an editable/dev install of cmd2_ext_test so that "inv ↵ | Todd Leonhardt | 2020-08-04 | 1 | -0/+1 |
| | | | | pytest" doesn't crash | ||||
* | Fix it so py.test by itself doesn't crash | Todd Leonhardt | 2020-08-04 | 1 | -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 warnings | Todd Leonhardt | 2020-08-04 | 1 | -5/+7 |
| | |||||
* | Updated documentation | Kevin Van Brunt | 2020-08-04 | 1 | -2/+10 |
| | |||||
* | Updated documentation | Kevin Van Brunt | 2020-08-04 | 1 | -1/+5 |
| | |||||
* | Added handling for disabled commands to CommandSet functions | Kevin Van Brunt | 2020-08-04 | 1 | -6/+19 |
| |