fix(shorebird_cli): remove extra newline when prompting for release version (#200)

This commit is contained in:
Felix Angelov
2023-03-29 14:05:53 -05:00
committed by GitHub
parent ac03e80e1c
commit 5faf079149
2 changed files with 8 additions and 2 deletions
@@ -159,9 +159,12 @@ Did you forget to run "shorebird init"?''',
final pubspecVersion = pubspecYaml.version!;
final pubspecVersionString =
'''${pubspecVersion.major}.${pubspecVersion.minor}.${pubspecVersion.patch}''';
if (releaseVersionArg == null) logger.info('');
final releaseVersion = releaseVersionArg ??
logger.prompt(
'\nWhich release is this patch for?',
'Which release is this patch for?',
defaultValue: pubspecVersionString,
);
final arch = results['arch'] as String;
@@ -149,9 +149,12 @@ Did you forget to run "shorebird init"?''',
final pubspecVersion = pubspecYaml.version!;
final pubspecVersionString =
'''${pubspecVersion.major}.${pubspecVersion.minor}.${pubspecVersion.patch}''';
if (releaseVersionArg == null) logger.info('');
final releaseVersion = releaseVersionArg ??
logger.prompt(
'\nWhat is the version of this release?',
'What is the version of this release?',
defaultValue: pubspecVersionString,
);
final arch = results['arch'] as String;