PrepareReleaseCommand constructor
PrepareReleaseCommand({
- required Printer printer,
- required NextVersionCommand nextVersionCommand,
- required RemoteTagIdCommand remoteTagIdCommand,
- required ChangelogCommand changelogCommand,
- required UpdateVersionCommand updateVersionCommand,
- 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'],
);
}