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 /docs/api | |
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 'docs/api')
-rw-r--r-- | docs/api/exceptions.rst | 3 | ||||
-rw-r--r-- | docs/api/utils.rst | 9 |
2 files changed, 3 insertions, 9 deletions
diff --git a/docs/api/exceptions.rst b/docs/api/exceptions.rst index db23eb0a..98afa97a 100644 --- a/docs/api/exceptions.rst +++ b/docs/api/exceptions.rst @@ -12,3 +12,6 @@ Custom cmd2 exceptions .. autoclass:: cmd2.exceptions.CommandSetRegistrationError :members: + +.. autoclass:: cmd2.exceptions.CompletionError + :members: diff --git a/docs/api/utils.rst b/docs/api/utils.rst index d9166401..188f5b16 100644 --- a/docs/api/utils.rst +++ b/docs/api/utils.rst @@ -36,15 +36,6 @@ IO Handling :members: -Tab Completion --------------- - -.. autoclass:: cmd2.utils.CompletionError - :members: - -.. autofunction:: cmd2.utils.basic_complete - - Text Alignment -------------- |