applyAll function

Future<List<AppliedPatch>> applyAll(
  1. BuildInput input,
  2. BuildOutputBuilder output
)

Applies every committed Patchwork patch from a build hook callback.

The helper registers Patchwork state and pub resolution files as hook dependencies, applies any committed patches that need generated output, and runs dart pub get when pub resolution must be refreshed before the current build continues.

Implementation

Future<List<AppliedPatch>> applyAll(
  BuildInput input,
  BuildOutputBuilder output,
) {
  return _wrapPatchworkErrors(() => _apply(input, output, package: null));
}