start method

Progress start({
  1. List<String> args = const <String>[],
  2. Progress? progress,
  3. bool runInShell = false,
  4. bool detached = false,
  5. bool terminal = false,
  6. bool privileged = false,
  7. bool nothrow = false,
  8. String? workingDirectory,
  9. bool extensionSearch = true,
})

Runs the dart script with an optional set of args.

args is a list of command line arguments which will be passed to the scsript.

Returns the processes exit code.

Implementation

Progress start({
  List<String> args = const <String>[],
  Progress? progress,
  bool runInShell = false,
  bool detached = false,
  bool terminal = false,
  bool privileged = false,
  bool nothrow = false,
  String? workingDirectory,
  bool extensionSearch = true,
}) {
  final sdk = DartSdk();

  final runner = ScriptRunner(sdk, this, args);

  return runner.start(
      progress: progress,
      runInShell: runInShell,
      detached: detached,
      terminal: terminal,
      privileged: privileged,
      nothrow: nothrow,
      workingDirectory: workingDirectory,
      extensionSearch: extensionSearch);
}