printSummary method

void printSummary(
  1. List<String> nextSteps
)

print what was done and the nextSteps. Sets exit code 1 when a step failed.

Implementation

void printSummary(List<String> nextSteps) {
  print('');
  for (String line in _lines) {
    print('  $line');
  }
  if (!ok) {
    print('\n\x1B[31mSome steps failed. See the output above.\x1B[0m');
    exitCode = 1;
  }
  if (nextSteps.isEmpty) return;
  print('\nNext steps:');
  for (String step in nextSteps) {
    print('  - $step');
  }
}