pub fn trust(
root: &Path,
state: &Path,
name: Option<&str>,
via: &str,
confirm: &mut dyn FnMut(&HookEntry) -> bool,
) -> CommandResultExpand description
speccoder hooks trust [<name>]: each named hook (every one not
trusted, without a name) that confirm agrees to, after it saw the
entry. A newly trusted observer hears what happens from now on.