upgradeChangeLog method

Future<String?> upgradeChangeLog(
  1. Version version
)

Implementation

Future<String?> upgradeChangeLog(Version version) async {
  final changelog = Changelog(fs);

  // nothing to do if up to date
  // TODO: check that this is exactly a last version
  if (!(await changelog.hasVersion(version))) {
    await changelog.releaseVersion(version);
    await changelog.save();
  }

  return changelog.getLastVersionChangelog();
}