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(
'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',
);
}