Skip to main content

run_hooks

Function run_hooks 

Source
pub fn run_hooks(
    event: &str,
    arguments: &str,
    path: &Path,
    state: &Path,
    provider: &Arc<dyn ModelProvider>,
    secret: Option<&str>,
    options: &RunOptions,
) -> Result<Vec<String>, Box<CommandResult>>
Expand description

Runs the mandatory hooks of event as hosted skills and lists the optional ones. Ok(lines) to show; Err when a mandatory hook did not complete — the caller stops with it.