BumpVersionCommand constructor
BumpVersionCommand()
Implementation
BumpVersionCommand() {
argParser.addFlag(
'major',
help: 'Bumps to the next major version. e.g. 1.2.6+8 => 2.0.0+9',
);
argParser.addFlag(
'minor',
help: 'Bumps to the next minor version. e.g. 1.2.6+8 => 1.3.0+9',
);
argParser.addFlag(
'patch',
help: 'Bumps to the next patch version. e.g. 1.2.6+8 => 1.2.7+9',
);
argParser.addFlag(
'commit',
help:
'Automatically commits the version bump. Precondition, no local changes in pubspec.yaml',
);
addModification(bumpPubspecVersion);
}