requestVersion method
Ask the user to type a custom version no.
Implementation
@override
void requestVersion() {
late final String preType;
if (!version.isPreRelease) {
final type = ['dev', 'alpha', 'beta'];
print('');
print(blue('Select the type of prerelease.'));
preType = menu(prompt: 'Prerelease type:', options: type);
}
final options = getNextVersions(version, preType);
print('');
print(blue('What sort of changes have been made since the last release?'));
final selected = menu(prompt: 'Select the change level:', options: options);
_version = selected.version;
if (selected is CustomVersion) {
selected.requestVersion();
}
}