Skip to content

tryFfi

struct FfiResult {
/// The exit code of the call.
int32 exitCode;
/// The optionally hex-decoded `stdout` data.
bytes stdout;
/// The `stderr` data.
bytes stderr;
}
function tryFfi(
string[] calldata commandInput
) external returns (FfiResult memory result);

Performs a foreign function call via terminal and returns the exit code, stdout, and stderr.