runProgramWait static method
Implementation
static Future<int> runProgramWait(String command) async {
try {
final result = await Process.run(_platformShell(), _shellArgs(command));
stdout.write(result.stdout);
stderr.write(result.stderr);
return result.exitCode;
} catch (e) {
stderr.writeln('runProgramWait error: $e');
return -1;
}
}