runInteractive static method
Run a command with stdout/stderr inherited (interactive).
Implementation
static Future<int> runInteractive(
String executable,
List<String> arguments, {
String? workingDirectory,
Map<String, String>? environment,
}) async {
final Process process = await Process.start(
executable,
arguments,
workingDirectory: workingDirectory,
environment: environment,
mode: ProcessStartMode.inheritStdio,
runInShell: true,
);
return process.exitCode;
}