runInCmd static method

dynamic runInCmd(
  1. String command
)

Implementation

static runInCmd(String command) async {
  ProcessResult result = await Process.run(command, [], runInShell: true);

  if (result.exitCode != 0) {
    print(result.stderr);
  }
}