execShellCommand method

Future<List<ProcessResult>> execShellCommand(
  1. String command, {
  2. Shell? shell,
  3. required bool isVerbose,
})

Implementation

Future<List<ProcessResult>> execShellCommand(String command,
    {Shell? shell, required bool isVerbose}) async {
  final _shell = shell ??
      Shell(
          verbose: true,
          environment: {'DEBUG': isVerbose ? '*' : ''},
          runInShell: true,
          includeParentEnvironment: true);
  return await _shell.run(command);
}