Skip to main content

run_rtk

Function run_rtk 

Source
pub(crate) fn run_rtk(
    rtk_bin: &str,
    args: &[String],
    payload: &str,
) -> Option<String>
Expand description

Spawn rtk, write payload to its stdin, and return its stdout on a clean exit.

None on any failure — binary not found, non-zero exit, non-UTF-8 output. rtk’s stderr is left attached to ours rather than captured: its advisory notices belong in the session log, and Claude Code ignores hook stderr on a zero exit.