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(
    'write-summary',
    abbr: 'w',
    help:
        'Writes release information to files (VERSION.txt and RELEASE_SUMMARY.txt)',
    aliases: ['writeSummary'],
  );
  argParser.addFlag(
    'update-year',
    abbr: 'Y',
    help:
        'Also update year in license files. Better to leave this off if you are not sure.',
    aliases: ['updateYear'],
  );
  argParser.addFlag(
    'ensure-major',
    abbr: 'm',
    help: 'Ensure next version >= 1.0.0',
    aliases: ['ensureMajor'],
  );
  argParser.addFlag(
    'no-build',
    abbr: 'n',
    help:
        'When paired with --write-summary, it will also write with VERSION-NO-BUILD.txt with no-build number',
    aliases: ['no-build'],
  );
}