PrepareReleaseCommand constructor

PrepareReleaseCommand({
  1. required Printer printer,
  2. required NextVersionCommand nextVersionCommand,
  3. required RemoteTagIdCommand remoteTagIdCommand,
  4. required ChangelogCommand changelogCommand,
  5. required UpdateVersionCommand updateVersionCommand,
  6. required UpdateYearCommand updateYearCommand,
})

Implementation

PrepareReleaseCommand({
  required this.printer,
  required this.nextVersionCommand,
  required this.remoteTagIdCommand,
  required this.changelogCommand,
  required this.updateVersionCommand,
  required this.updateYearCommand,
}) {
  argParser.addFlag(
    'writeSummary',
    abbr: 'w',
    help:
        'Writes release information to files (VERSION.txt and RELEASE_SUMMARY.txt)',
  );
  argParser.addFlag(
    'updateYear',
    abbr: 'Y',
    help:
        'Also update year in license files. Better to eave this off if you are not sure.',
  );
  argParser.addFlag(
    'ensureMajor',
    abbr: 'm',
    help: 'Ensure next version >= 1.0.0',
  );
}