ProcessRunner typedef
ProcessRunner =
Future<ProcessResult> Function(String executable, List<String> args, {String? workingDirectory})
Executes shell commands for dependency management, build_runner, and formatting.
All external process calls are funneled through this class so logging and
error handling stay consistent across the CLI. These operations mutate the
target project's pubspec.yaml and generated files.
Signature for running a process, injected for testability.
Implementation
typedef ProcessRunner = Future<ProcessResult> Function(
String executable,
List<String> args, {
String? workingDirectory,
});