showEnded static method

void showEnded({
  1. required CommandLogger logger,
  2. required List<AppBuildDetail> details,
  3. String? versionName,
})

Prints a status line per build in details, which have all ended, and then their result.

Throws FailureException if a build did not succeed.

Implementation

static void showEnded({
  required CommandLogger logger,
  required List<AppBuildDetail> details,
  String? versionName,
}) {
  for (final detail in details) {
    logger.line(AppBuildStatusFormatter.line(detail.build.platform, detail));
  }

  _report(
    logger,
    platforms: [for (final detail in details) detail.build.platform],
    details: {for (final detail in details) detail.build.platform: detail},
    versionName: versionName,
  );
}