askForVersion function

Version askForVersion(
  1. Version currentVersion
)

Ask the user to select the new version no. Pass in the current currentVersion number.

Implementation

Version askForVersion(Version currentVersion) {
  final options = determineVersionToOffer(currentVersion);

  print('');
  print(blue('What sort of changes have been made since the last release?'));
  final selected = menu(prompt: 'Select the change level:', options: options)
    ..requestVersion();

  return confirmVersion(selected.version);
}