runSync method

ProcessResult runSync (List command, { String workingDirectory, Map<String, String> environment, bool includeParentEnvironment: true, bool runInShell: false, Encoding stdoutEncoding: systemEncoding, Encoding stderrEncoding: systemEncoding })

Starts a process and runs it to completion. This is a synchronous call and will block until the child process terminates.

The arguments are the same as for run`.

Returns a ProcessResult with the result of running the process, i.e., exit code, standard out and standard in.

Implementation

ProcessResult runSync(
  List<dynamic> command, {
  String workingDirectory,
  Map<String, String> environment,
  bool includeParentEnvironment: true,
  bool runInShell: false,
  Encoding stdoutEncoding: systemEncoding,
  Encoding stderrEncoding: systemEncoding,
});