Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Deprecate support for Python 3.6 and remove dependency on attrs (#1257) | Todd Leonhardt | 2023-01-31 | 1 | -2/+0 |
| | | | | | | | | | | | | | * Start deprecation of Python 3.6 * Removed dependency on attrs and replaced with dataclasses * Fix typing * Added comments to assist with dropping support of Python versions in the future. --------- Co-authored-by: Kevin Van Brunt <kmvanbrunt@gmail.com> | ||||
* | Fixed issue where a ns_provider could be passed None instead of its correct ↵2.3.2 | Kevin Van Brunt | 2021-11-22 | 1 | -0/+43 |
| | | | | cmd2.Cmd or CommandSet value. | ||||
* | Updated change log2.3.0 | Kevin Van Brunt | 2021-11-11 | 1 | -1/+1 |
| | |||||
* | Updated unit tests | Kevin Van Brunt | 2021-11-11 | 1 | -1/+5 |
| | |||||
* | Updated CommandSet unit tests | Kevin Van Brunt | 2021-11-11 | 1 | -48/+66 |
| | |||||
* | set command output now uses SimpleTable. | Kevin Van Brunt | 2021-08-19 | 1 | -5/+7 |
| | | | | | | | Tabled tab completion now includes divider row. Tab completion results for aliases, macros, and Settables wrap long fields. SimpleTable now accepts blank for the divider character. It is identical to passing None. Removed --verbose flag from set command so the descriptions always show. | ||||
* | Fixing tests on Python 3.10 | Kevin Van Brunt | 2021-06-17 | 1 | -1/+1 |
| | |||||
* | Replaced some pexcept() calls with perror(). | Kevin Van Brunt | 2021-04-02 | 1 | -1/+1 |
| | | | | | | Converted some strings to f-strings. Fixed some grammar in error messages and docs. Increased code coverage. | ||||
* | Refactored _perform_completion() to remove need for a cast() call | Kevin Van Brunt | 2021-04-02 | 1 | -7/+3 |
| | | | | Changed CommandResult.stderr to a str instead of Optional[str] | ||||
* | Resolves comments from PR | Eric Lin | 2021-03-18 | 1 | -5/+83 |
| | |||||
* | Some mypy validation fixes | Eric Lin | 2021-03-18 | 1 | -1/+1 |
| | |||||
* | Added tests | Eric Lin | 2021-03-18 | 1 | -2/+98 |
| | |||||
* | Merge branch 'master' into black | Todd Leonhardt | 2021-02-19 | 1 | -9/+9 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # cmd2/__init__.py # cmd2/argparse_completer.py # cmd2/argparse_custom.py # cmd2/cmd2.py # cmd2/decorators.py # cmd2/exceptions.py # cmd2/utils.py # examples/arg_decorators.py # examples/argparse_completion.py # examples/modular_commands_main.py # tests/test_argparse_completer.py # tests/test_argparse_custom.py # tests/test_cmd2.py # tests/test_completion.py # tests/test_history.py | ||||
| * | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2021-01-22 | 1 | -4/+14 |
| |\ | |||||
| * \ | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-09-17 | 1 | -0/+3 |
| |\ \ | |||||
| * \ \ | Merge branch '2.0' into read_input | Kevin Van Brunt | 2020-09-03 | 1 | -8/+34 |
| |\ \ \ | |||||
| | * \ \ | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-09-03 | 1 | -8/+34 |
| | |\ \ \ | |||||
| * | | | | | Refactored ArgparseCompleter to support custom completion | Kevin Van Brunt | 2020-09-01 | 1 | -1/+1 |
| |/ / / / | |||||
| * | | | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-28 | 1 | -9/+9 |
| |\ \ \ \ | |||||
| * \ \ \ \ | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-27 | 1 | -6/+6 |
| |\ \ \ \ \ | |||||
| * \ \ \ \ \ | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-20 | 1 | -0/+62 |
| |\ \ \ \ \ \ | |||||
| * | | | | | | | Replaced choices_function / choices_method with choices_provider. | Kevin Van Brunt | 2020-08-13 | 1 | -9/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced completer_function / completer_method with completer. ArgparseCompleter now always passes cmd2.Cmd or CommandSet instance as the self argument to choices_provider and completer functions. Moved basic_complete from utils into cmd2.Cmd class. Moved CompletionError to exceptions.py | ||||
* | | | | | | | | Add in isort changes | Todd Leonhardt | 2021-01-31 | 1 | -3/+9 |
| | | | | | | | | |||||
* | | | | | | | | Add black for automatic code format | Todd Leonhardt | 2021-01-31 | 1 | -13/+8 |
| |_|_|_|_|_|/ |/| | | | | | | |||||
* | | | | | | | Changed isort to force wrapping of imports to reduce merge conflicts from ↵ | Eric Lin | 2021-01-22 | 1 | -4/+14 |
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | minor import changes. | ||||
* | | | | | | Changes default category to be heritable by default - meaning that ↵ | Eric Lin | 2020-09-11 | 1 | -0/+3 |
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | subclasses will inherit the parent class's default category. Adds optional flag to disable heritability. | ||||
* | | | | | Fixed type hints in example code1.3.9 | Kevin Van Brunt | 2020-09-03 | 1 | -1/+1 |
| | | | | | |||||
* | | | | | Added CommandSet.on_unregistered() | Kevin Van Brunt | 2020-09-03 | 1 | -2/+7 |
| | | | | | |||||
* | | | | | Updated docs | Kevin Van Brunt | 2020-09-01 | 1 | -7/+6 |
| | | | | | |||||
* | | | | | Added unit tests for CommandSet callbacks | Kevin Van Brunt | 2020-09-01 | 1 | -1/+22 |
| |_|_|/ |/| | | | |||||
* | | | | Fixed issue where subcommand added with @as_subcommand_to decorator did not ↵ | Kevin Van Brunt | 2020-08-27 | 1 | -9/+9 |
| |_|/ |/| | | | | | | | | | | | | | | display help when called with -h/--help. 'add_help=False' no longer has to be passed to parsers used in @as_subcommand_to decorator. | ||||
* | | | The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵ | Kevin Van Brunt | 2020-08-26 | 1 | -6/+6 |
| |/ |/| | | | | | | | | | | | 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. | ||||
* | | Added tests for invalid subcommands | Eric Lin | 2020-08-20 | 1 | -0/+27 |
| | | |||||
* | | Fixed AttributeError when CommandSet that uses as_subcommand_to decorator is ↵ | Kevin Van Brunt | 2020-08-19 | 1 | -0/+35 |
|/ | | | | loaded during cmd2.Cmd.__init__(). | ||||
* | When passing a ns_provider to an argparse command, will now attempt to ↵ | Eric Lin | 2020-08-12 | 1 | -5/+29 |
| | | | | 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 | 1 | -127/+104 |
| | | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set. | ||||
* | Will now traverse down CommandSet inheritance tree to find all leaf descendants.1.3.2 | Eric Lin | 2020-08-10 | 1 | -5/+34 |
| | | | | | | 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 | ||||
* | Fixed prog value of subcommands added with as_subcommand_to() decorator. | Kevin Van Brunt | 2020-08-07 | 1 | -2/+2 |
| | | | | Fixed missing settings in subcommand parsers created with as_subcommand_to() decorator. | ||||
* | Verify that a completer function is defined in a CommandSet before | Eric Lin | 2020-08-06 | 1 | -0/+781 |
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 |