describe method

String describe()

The report as the terminal shows it.

Implementation

String describe() {
  final lines = <String>[
    '$input ($format): ${outcome.name}${error == null ? '' : ' — $error'}',
    if (author != null) '  author   $author',
    if (license != null) '  license  $license',
    if (copyright != null) '  ©        $copyright',
    for (final path in <String>[...written]..sort()) '  wrote    $path',
    for (final line in mapped) '  mapped   $line',
    for (final line in warnings) '  approx   $line',
    for (final line in dropped) '  dropped  $line',
  ];
  return lines.join('\n');
}