Skip to content
Snippets Groups Projects
Commit bd783af3 authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Add hooks for generic command execution

pre-command and post-command will always be executed before and after
any command is being executed. This does not affect inner calls.
parent f3c7d74d
Branches
Tags
No related merge requests found
...@@ -283,5 +283,7 @@ done ...@@ -283,5 +283,7 @@ done
verbose "$VCSH_COMMAND begin" verbose "$VCSH_COMMAND begin"
export VCSH_COMMAND=$(echo $VCSH_COMMAND | sed 's/-/_/g') export VCSH_COMMAND=$(echo $VCSH_COMMAND | sed 's/-/_/g')
hook pre-command
$VCSH_COMMAND $VCSH_COMMAND
hook post-command
verbose "$VCSH_COMMAND end, exiting" verbose "$VCSH_COMMAND end, exiting"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment