runSync method
Run one or multiple plain text command(s).
Commands can be split by line.
Commands can be on multiple line if ending with ^ or \.
Returns a list of executed command line results.
Compare to the async version, it is not possible to kill the spawn process nor to feed any input.
Implementation
@override
List<ProcessResult> runSync(String script) {
return _runScriptSync(script).processResults;
}