Expand description
Execute commands while continuously draining both process pipes.
Structs§
- Execution
Result - Command execution result.
- Process
Handle - Non-blocking process handle. Pipe readers run immediately after spawning.
Functions§
- execute_
command - Execute a command, or return the command without spawning in dry-run mode.
- execute_
detached - Start a detached command with all standard streams disconnected.
- setup_
signal_ handler - Register a Ctrl+C cleanup callback in the current Tokio runtime. Calling the returned function unregisters it without running cleanup.
- start_
command - Start a command and drain stdout/stderr concurrently, with optional console output.
Type Aliases§
- Cleanup
Fn - Signal cleanup callback.