Skip to main content

spawn

Function spawn 

Source
pub fn spawn(opts: &SpawnOpts) -> Result<Child, Error>
Expand description

Spawn claude -p per SpawnOpts and return the Child.

Stdin is redirected from /dev/null so the subprocess never waits for interactive input; stdout and stderr are piped so the caller can feed them to ClaudeProcess.