Skip to main content

test_lifecycle_shell_command

Function test_lifecycle_shell_command 

Source
pub async fn test_lifecycle_shell_command(
    event_name: &str,
    config: &LifecycleHookCommand,
    fallback_cwd: Option<PathBuf>,
) -> Result<ShellHookTestOutput, String>
Expand description

Execute one lifecycle command against a deterministic synthetic payload. This shares the production shell/environment/timeout/output-capping path; only hook-result interpretation is skipped so callers receive raw output.