Skip to main content

run_script

Function run_script 

Source
pub fn run_script(
    script_path: &Path,
    event_name: &str,
    event_json: &str,
    timeout: Duration,
) -> Result<RunOutcome, String>
Expand description

Run stryke <script_path> with event_json on stdin and ZWIRE_EVENT set to event_name. Kills the child if it runs longer than timeout. Output is truncated to [MAX_OUTPUT_BYTES].