prettyPrintChangelogInDirectory function

Future<void> prettyPrintChangelogInDirectory(
  1. Directory directory
)

Pretty prints the changelog in the given directory

Implementation

Future<void> prettyPrintChangelogInDirectory(Directory directory) async {
  final changelog2File = File('${directory.path}/CHANGELOG.md');
  final changelog2 = await changelog2File.readAsString();
  await changelog2File.writeAsString(prettyCiderChangelog(changelog2));
}