[−][src]Function devlog::hook::execute_hook
pub fn execute_hook<W: Write>(
w: &mut W,
config: &Config,
hook_type: &HookType,
args: &[&OsStr]
) -> Result<(), Error>
Executes a hook command if available. If no hook is available (e.g. because the hook file is non-executable) then this is a no-op.