summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-05-27 22:31:19 -0600
committerkotfu <kotfu@kotfu.net>2018-05-27 22:31:19 -0600
commit4b87d49f07d880bd9536e3193f0f123b9bef0fad (patch)
tree83600b51ef9427841329e85c6d85ef6dc4ccb76c /docs
parent3b49e52cc55cbfc7ed8fa0cedc97d626325a4bd1 (diff)
downloadcmd2-git-4b87d49f07d880bd9536e3193f0f123b9bef0fad.tar.gz
Add more whitespace
Diffstat (limited to 'docs')
-rw-r--r--docs/hooks.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/hooks.rst b/docs/hooks.rst
index 75febb2b..9952e795 100644
--- a/docs/hooks.rst
+++ b/docs/hooks.rst
@@ -110,7 +110,9 @@ Postparsing Hooks
Postparsing hooks are called after the user input has been parsed but before
execution of the comamnd. These hooks can be used to:
+
- modify the user input
+- run code before every command executes
- cancel execution of the current command
- exit the application
@@ -154,6 +156,7 @@ proper technique::
return stop, statement
If a postparsing hook returns ``True`` as the first value in the tuple:
+
- no more hooks of any kind (except command finalization hooks) will be called
- the command will not be executed
- no error message will be displayed to the user