execute method

  1. @override
Future<T> execute()
override

The logic to execute the task. Shouldn't be called directly but rather through run

Implementation

@override
Future<T> execute() async {
  final result = await Process.run(
    executable,
    arguments,
    workingDirectory: workingDirectory,
    runInShell: true,
  );

  return handleResult(result);
}