summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-06-01 00:45:15 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-06-01 00:45:15 -0400
commiteb41d46c1f6c6281e57e8b864fa4500d3509ed55 (patch)
tree0b515e33f78b45f7eefa9dd2dcbe5bcc14baa0ec /docs/api
parent19a142782bc1272af870cd893fd25fc7f19c9940 (diff)
parent8d9405a1fcc2169aa039172a8e2891b839a59e6c (diff)
downloadcmd2-git-eb41d46c1f6c6281e57e8b864fa4500d3509ed55.tar.gz
Merge branch 'master' into hint_bug
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/exceptions.rst11
-rw-r--r--docs/api/index.rst28
2 files changed, 26 insertions, 13 deletions
diff --git a/docs/api/exceptions.rst b/docs/api/exceptions.rst
new file mode 100644
index 00000000..8ef0a61f
--- /dev/null
+++ b/docs/api/exceptions.rst
@@ -0,0 +1,11 @@
+cmd2.exceptions
+===============
+
+Custom cmd2 exceptions
+
+
+.. autoclass:: cmd2.exceptions.SkipPostcommandHooks
+ :members:
+
+.. autoclass:: cmd2.exceptions.Cmd2ArgparseError
+ :members:
diff --git a/docs/api/index.rst b/docs/api/index.rst
index 7b66a684..cc899ba1 100644
--- a/docs/api/index.rst
+++ b/docs/api/index.rst
@@ -19,37 +19,39 @@ This documentation is for ``cmd2`` version |version|.
:hidden:
cmd
- decorators
- parsing
+ ansi
argparse_completer
argparse_custom
- ansi
- utils
+ constants
+ decorators
+ exceptions
history
+ parsing
plugin
py_bridge
table_creator
- constants
+ utils
**Modules**
- :ref:`api/cmd:cmd2.Cmd` - functions and attributes of the main
class in this library
-- :ref:`api/decorators:cmd2.decorators` - decorators for ``cmd2``
- commands
-- :ref:`api/parsing:cmd2.parsing` - classes for parsing and storing
- user input
+- :ref:`api/ansi:cmd2.ansi` - convenience classes and functions for generating
+ ANSI escape sequences to style text in the terminal
- :ref:`api/argparse_completer:cmd2.argparse_completer` - classes for
``argparse``-based tab completion
- :ref:`api/argparse_custom:cmd2.argparse_custom` - classes and functions
for extending ``argparse``
-- :ref:`api/ansi:cmd2.ansi` - convenience classes and functions for generating
- ANSI escape sequences to style text in the terminal
-- :ref:`api/utils:cmd2.utils` - various utility classes and functions
+- :ref:`api/constants:cmd2.constants` - just like it says on the tin
+- :ref:`api/decorators:cmd2.decorators` - decorators for ``cmd2``
+ commands
+- :ref:`api/exceptions:cmd2.exceptions` - custom ``cmd2`` exceptions
- :ref:`api/history:cmd2.history` - classes for storing the history
of previously entered commands
+- :ref:`api/parsing:cmd2.parsing` - classes for parsing and storing
+ user input
- :ref:`api/plugin:cmd2.plugin` - data classes for hook methods
- :ref:`api/py_bridge:cmd2.py_bridge` - classes for bridging calls from the
embedded python environment to the host app
- :ref:`api/table_creator:cmd2.table_creator` - table creation module
-- :ref:`api/constants:cmd2.constants` - just like it says on the tin
+- :ref:`api/utils:cmd2.utils` - various utility classes and functions