Skip to main content

Module executor

Module executor 

Source
Expand description

Execute commands while continuously draining both process pipes.

Structs§

ExecutionResult
Command execution result.
ProcessHandle
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§

CleanupFn
Signal cleanup callback.