diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-13 14:19:05 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-13 14:20:31 -0400 |
commit | e6da8596c433f46bc337c7e8a14c7de1b0310e4c (patch) | |
tree | 09f5a3225376e26dcb03419d6243c8fc52433b07 /cmd2/__init__.py | |
parent | 5dd2d03ef35a3d33ff53d82c8039d68e263246ee (diff) | |
download | cmd2-git-e6da8596c433f46bc337c7e8a14c7de1b0310e4c.tar.gz |
Replaced choices_function / choices_method with choices_provider.
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
Diffstat (limited to 'cmd2/__init__.py')
-rw-r--r-- | cmd2/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/__init__.py b/cmd2/__init__.py index 9f0bb176..ca080ee8 100644 --- a/cmd2/__init__.py +++ b/cmd2/__init__.py @@ -32,8 +32,8 @@ from .command_definition import CommandSet, with_default_category from .constants import COMMAND_NAME, DEFAULT_SHORTCUTS from .decorators import with_argument_list, with_argparser, with_argparser_and_unknown_args, with_category, \ as_subcommand_to -from .exceptions import Cmd2ArgparseError, SkipPostcommandHooks, CommandSetRegistrationError +from .exceptions import Cmd2ArgparseError, CommandSetRegistrationError, CompletionError, SkipPostcommandHooks from . import plugin from .parsing import Statement from .py_bridge import CommandResult -from .utils import categorize, CompletionError, Settable +from .utils import categorize, Settable |