pub fn load(root: &Path) -> Result<Vec<HookDef>, String>
The hooks of the project at root: its [hooks] and its extensions’.
root
[hooks]
The configuration cannot be read, a hook is misconfigured, or an extension cannot be loaded.