generate method

Future<bool> generate({
  1. required String fmtFormat,
  2. required ChangelogInfo changelogInfo,
  3. String fileName = "CHANGELOG",
})

Implementation

Future<bool> generate(
    {required String fmtFormat,
    required ChangelogInfo changelogInfo,
    String fileName = "CHANGELOG"}) async {
  var printer = printers[fmtFormat];
  if (printer == null) {
    print("Printer for format $fmtFormat is not found");
    return false;
  }
  return await printer.print(
      changelogInfo: changelogInfo, fileName: fileName);
}