configure method

  1. @override
Step configure()
override

Composes Steps into one unit to enable more modular and understandable workflows.

Has to return a Step.

Implementation

@override
Step configure() => Runnable(name: name, (context) async {
      final ProcessInterface process = await ProcessInterface.fromEnvironment(
          program, arguments,
          options: ProcessInterfaceOptions(
              runAsAdministrator:
                  runAsAdministrator ?? options.runAsAdministrator,
              runInShell: runInShell ?? options.runInShell,
              workingDirectory: workingDirectory ?? options.workingDirectory),
          onStdout: (c) => onStdout?.call(context, c),
          onStderr: (c) => onStderr?.call(context, c));
      await process.waitForExit();
    });