From d76e0af8554af134c78ecdbe686bdf1b85ac434b Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Fri, 7 Apr 2023 10:25:46 -0400 Subject: [PATCH] fix(shorebird_cli): Make `shorebird release` logging clearer (#258) --- .../lib/src/commands/release_command.dart | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/packages/shorebird_cli/lib/src/commands/release_command.dart b/packages/shorebird_cli/lib/src/commands/release_command.dart index 74fdef67..4e5dc814 100644 --- a/packages/shorebird_cli/lib/src/commands/release_command.dart +++ b/packages/shorebird_cli/lib/src/commands/release_command.dart @@ -155,8 +155,7 @@ Did you forget to run "shorebird init"?''', final arch = results['arch'] as String; final platform = results['platform'] as String; - logger.info( - ''' + logger.info(''' ${styleBold.wrap(lightGreen.wrap('šŸš€ Ready to create a new release!'))} @@ -165,14 +164,7 @@ ${styleBold.wrap(lightGreen.wrap('šŸš€ Ready to create a new release!'))} āš™ļø Architecture: ${lightCyan.wrap(arch)} šŸ•¹ļø Platform: ${lightCyan.wrap(platform)} #ļøāƒ£ Hash: ${lightCyan.wrap(hash)} - -Your next step is to upload the release artifact to the Play Store. -${lightCyan.wrap("./build/app/outputs/bundle/release/app-release.aab")} - -See the following link for more information: -${link(uri: Uri.parse('https://support.google.com/googleplay/android-developer/answer/9859152?hl=en'))} -''', - ); +'''); final confirm = logger.confirm('Would you like to continue?'); @@ -221,7 +213,17 @@ ${link(uri: Uri.parse('https://support.google.com/googleplay/android-developer/a return ExitCode.software.code; } - logger.success('\nāœ… Published Release!'); + logger + ..success('\nāœ… Published Release!') + ..info(''' + +Your next step is to upload the release artifact to the Play Store. +${lightCyan.wrap("./build/app/outputs/bundle/release/app-release.aab")} + +See the following link for more information: +${link(uri: Uri.parse('https://support.google.com/googleplay/android-developer/answer/9859152?hl=en'))} +'''); + return ExitCode.success.code; } }