exec method

  1. @override
dynamic exec(
  1. String command, {
  2. dynamic external = false,
  3. String? path,
  4. Shell? shell,
})
override

Implementation

@override
exec(final String command,
    {external = false, String? path, final Shell? shell}) async {
  log("ScriptRunner", "Running Command", data: command);
  if (!external) {
    final output = await execCommand(command, path: path, shell: shell);
    log("ScriptRunner", command, data: output);
    // notifyChange();
    return output;
  } else {
    final result = await runExternalCommand(command, path);
    notifyListeners();
    return result;
  }
}