runShell method

PluginInstaller runShell({
  1. required String command,
  2. List<String> args = const <String>[],
  3. String? workingDir,
})

Enqueues a RunShell that executes command with args inside workingDir (defaults to _ctx.projectRoot).

runShell is the escape hatch: it lets a plugin install command call out to flutter pub get, dart format, pod install, etc. without dropping out of the install framework.

@param command Executable (no shell quoting). @param args Positional arguments. @param workingDir Optional working directory override. @return This installer (chainable).

Implementation

PluginInstaller runShell({
  required String command,
  List<String> args = const <String>[],
  String? workingDir,
}) {
  _ops.add(RunShell(command: command, args: args, workingDir: workingDir));
  return this;
}