utils/process_utils library

Classes

ManagedProcess
A managed process with streaming I/O.
ProcessOutput
Result of a process execution.

Functions

commandExists(String command) Future<bool>
Check if a command is available on PATH.
runCommand(String command, List<String> args, {String? workingDirectory, Map<String, String>? environment, Duration? timeout, int? maxOutputBytes}) Future<ProcessOutput>
Run a command and capture output.
runShell(String command, {String? workingDirectory, Map<String, String>? environment, Duration? timeout, int? maxOutputBytes}) Future<ProcessOutput>
Run a shell command (via /bin/sh or cmd.exe).
spawnProcess(String command, List<String> args, {String? workingDirectory, Map<String, String>? environment}) Future<ManagedProcess>
Spawn a long-running process with streaming output.