aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2014-03-31 17:35:48 +0200
committerAndré Erdmann <dywi@mailerd.de>2014-03-31 17:35:48 +0200
commitadeb72581e0b6030af14441129059241e009a58a (patch)
tree1a8e03b68dfafa8a0c5bb9d97cc4c8197a759616 /doc
parentroverlay: --log-level, --verbose (-v) args (diff)
downloadR_overlay-adeb72581e0b6030af14441129059241e009a58a.tar.gz
R_overlay-adeb72581e0b6030af14441129059241e009a58a.tar.bz2
R_overlay-adeb72581e0b6030af14441129059241e009a58a.zip
hook functions: die_cannot_run()
+ qwhich(): use "hash" instead of "which"
Diffstat (limited to 'doc')
-rw-r--r--doc/rst/usage.rst12
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/rst/usage.rst b/doc/rst/usage.rst
index c2d8bc9..f27e933 100644
--- a/doc/rst/usage.rst
+++ b/doc/rst/usage.rst
@@ -2509,10 +2509,17 @@ when included in the hook script, most of the enviroment variables readonly.
+-----------------+-------------------------------------------------------+
| DEVNULL | */dev/null* target (could also be a file) |
+-----------------+-------------------------------------------------------+
+ | EX_OK | *success* exit code |
+ +-----------------+-------------------------------------------------------+
| EX_ERR | default error exit code |
+-----------------+-------------------------------------------------------+
| EX_ARG_ERR | default exit code for arg errors |
+-----------------+-------------------------------------------------------+
+ | EX_CANNOT_RUN | default exit code when a hook cannot run, |
+ | | e.g. if an essential program is missing |
+ | | |
+ | | Defaults to ``$EX_OK``. |
+ +-----------------+-------------------------------------------------------+
| EX_GIT_ERR | git-related error codes |
| EX_GIT_ADD_ERR | |
| EX_GIT_COMMIT\ | |
@@ -2558,6 +2565,9 @@ when included in the hook script, most of the enviroment variables readonly.
# @noreturn die ( [message], [exit_code] ), raises exit()
# Lets the script die with the given message/exit code.
#
+ # @noreturn die_cannot_run ( [reason] ), raises die (**EX_CANNOT_RUN)
+ # Lets the script die due to missing preconditions.
+ #
# @noreturn OUT_OF_BOUNDS(), raises die()
# Lets the script die due to insufficient arg count.
#
@@ -2582,7 +2592,7 @@ when included in the hook script, most of the enviroment variables readonly.
# Returns 0 if $word is in the given list, else 1.
#
# int qwhich ( *command )
- # Returns 0 if all listed commands are found by "which", else 1.
+ # Returns 0 if all listed commands could be found, else 1.
#
# int sync_allowed ( action_name, [msg_nosync], [msg_sync] )
# Returns 0 if syncing for the given action is allowed, else 1.