runSync method

  1. @override
List<ProcessResult> runSync(
  1. String script
)

Run one or multiple plain text command(s).

Commands can be split by line.

Commands can be on multiple line if ending with ^ or \. (note that \ must be escaped too so you might have to enter \\).

Returns a list of executed command line results.

Compared 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) {
  throw UnimplementedError('runSync($script)');
}