diff --git a/packages/shorebird_cli/lib/src/commands/patch/patch_aar_command.dart b/packages/shorebird_cli/lib/src/commands/patch/patch_aar_command.dart index 2b478125..7e11645f 100644 --- a/packages/shorebird_cli/lib/src/commands/patch/patch_aar_command.dart +++ b/packages/shorebird_cli/lib/src/commands/patch/patch_aar_command.dart @@ -252,7 +252,7 @@ Please re-run the release command for this version or create a new release.'''); '''📱 App: ${lightCyan.wrap(app.displayName)} ${lightCyan.wrap('(${app.appId})')}''', 'đŸ“Ļ Release Version: ${lightCyan.wrap(releaseVersion)}', '''đŸ•šī¸ Platform: ${lightCyan.wrap(platform.name)} ${lightCyan.wrap('[${archMetadata.join(', ')}]')}''', - 'đŸŸĸ Track: Production', + 'đŸŸĸ Track: ${lightCyan.wrap('Production')}', ]; logger.info( diff --git a/packages/shorebird_cli/lib/src/commands/patch/patch_android_command.dart b/packages/shorebird_cli/lib/src/commands/patch/patch_android_command.dart index 5b5094ea..8b017ecc 100644 --- a/packages/shorebird_cli/lib/src/commands/patch/patch_android_command.dart +++ b/packages/shorebird_cli/lib/src/commands/patch/patch_android_command.dart @@ -64,6 +64,7 @@ class PatchAndroidCommand extends ShorebirdCommand ) ..addFlag( 'prod', + negatable: false, help: 'Whether to publish the patch to production', ); } @@ -286,7 +287,10 @@ Current Flutter Revision: $originalFlutterRevision if (flavor != null) '🍧 Flavor: ${lightCyan.wrap(flavor)}', 'đŸ“Ļ Release Version: ${lightCyan.wrap(releaseVersion)}', '''đŸ•šī¸ Platform: ${lightCyan.wrap(platform.name)} ${lightCyan.wrap('[${archMetadata.join(', ')}]')}''', - if (isProd) 'đŸŸĸ Track: Production' else '🟠 Track: Staging', + if (isProd) + 'đŸŸĸ Track: ${lightCyan.wrap('Production')}' + else + '🟠 Track: ${lightCyan.wrap('Staging')}', ]; logger.info( diff --git a/packages/shorebird_cli/lib/src/commands/patch/patch_ios_command.dart b/packages/shorebird_cli/lib/src/commands/patch/patch_ios_command.dart index ec2abe40..db10af00 100644 --- a/packages/shorebird_cli/lib/src/commands/patch/patch_ios_command.dart +++ b/packages/shorebird_cli/lib/src/commands/patch/patch_ios_command.dart @@ -62,6 +62,7 @@ class PatchIosCommand extends ShorebirdCommand ) ..addFlag( 'prod', + negatable: false, help: 'Whether to publish the patch to production', ); } @@ -218,7 +219,10 @@ Current Flutter Revision: $originalFlutterRevision if (flavor != null) '🍧 Flavor: ${lightCyan.wrap(flavor)}', 'đŸ“Ļ Release Version: ${lightCyan.wrap(releaseVersion)}', '''đŸ•šī¸ Platform: ${lightCyan.wrap(releasePlatform.name)} ${lightCyan.wrap('[$arch (${formatBytes(aotFileSize)})]')}''', - if (isProd) 'đŸŸĸ Track: Production' else '🟠 Track: Staging', + if (isProd) + 'đŸŸĸ Track: ${lightCyan.wrap('Production')}' + else + '🟠 Track: ${lightCyan.wrap('Staging')}', ]; logger.info( diff --git a/packages/shorebird_cli/lib/src/commands/patch/patch_ios_framework_command.dart b/packages/shorebird_cli/lib/src/commands/patch/patch_ios_framework_command.dart index bd65ce28..186482bf 100644 --- a/packages/shorebird_cli/lib/src/commands/patch/patch_ios_framework_command.dart +++ b/packages/shorebird_cli/lib/src/commands/patch/patch_ios_framework_command.dart @@ -200,7 +200,7 @@ Please re-run the release command for this version or create a new release.'''); '''📱 App: ${lightCyan.wrap(app.displayName)} ${lightCyan.wrap('($appId)')}''', 'đŸ“Ļ Release Version: ${lightCyan.wrap(releaseVersion)}', '''đŸ•šī¸ Platform: ${lightCyan.wrap(releasePlatform.name)} ${lightCyan.wrap('[$arch (${formatBytes(aotFileSize)})]')}''', - 'đŸŸĸ Track: Production', + 'đŸŸĸ Track: ${lightCyan.wrap('Production')}', ]; logger.info( diff --git a/packages/shorebird_cli/lib/src/commands/preview_command.dart b/packages/shorebird_cli/lib/src/commands/preview_command.dart index 3fe69056..220b22af 100644 --- a/packages/shorebird_cli/lib/src/commands/preview_command.dart +++ b/packages/shorebird_cli/lib/src/commands/preview_command.dart @@ -54,6 +54,7 @@ class PreviewCommand extends ShorebirdCommand { ) ..addFlag( 'staging', + negatable: false, help: 'Preview the release on the staging environment.', ); } diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_aar_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_aar_command_test.dart index 359015cb..3a225a06 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_aar_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_aar_command_test.dart @@ -805,7 +805,7 @@ Please re-run the release command for this version or create a new release.'''), that: contains( ''' đŸ•šī¸ Platform: ${lightCyan.wrap(releasePlatform.name)} ${lightCyan.wrap('[arm32 (4 B), arm64 (4 B), x86_64 (4 B)]')} -đŸŸĸ Track: Production''', +đŸŸĸ Track: ${lightCyan.wrap('Production')}''', ), ), ), diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_android_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_android_command_test.dart index 44fbb950..0385b1e2 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_android_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_android_command_test.dart @@ -809,7 +809,7 @@ Please re-run the release command for this version or create a new release.'''), that: contains( ''' đŸ•šī¸ Platform: ${lightCyan.wrap(releasePlatform.name)} ${lightCyan.wrap('[arm32 (4 B), arm64 (4 B), x86_64 (4 B)]')} -đŸŸĸ Track: Production''', +đŸŸĸ Track: ${lightCyan.wrap('Production')}''', ), ), ), @@ -840,7 +840,7 @@ Please re-run the release command for this version or create a new release.'''), that: contains( ''' đŸ•šī¸ Platform: ${lightCyan.wrap(releasePlatform.name)} ${lightCyan.wrap('[arm32 (4 B), arm64 (4 B), x86_64 (4 B)]')} -🟠 Track: Staging''', +🟠 Track: ${lightCyan.wrap('Staging')}''', ), ), ), diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart index 5003a593..44f4ecdb 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_ios_command_test.dart @@ -872,7 +872,7 @@ Please re-run the release command for this version or create a new release.'''), that: contains( ''' đŸ•šī¸ Platform: ${lightCyan.wrap(platformName)} ${lightCyan.wrap('[aarch64 (0 B)]')} -đŸŸĸ Track: Production''', +đŸŸĸ Track: ${lightCyan.wrap('Production')}''', ), ), ), @@ -903,7 +903,7 @@ Please re-run the release command for this version or create a new release.'''), that: contains( ''' đŸ•šī¸ Platform: ${lightCyan.wrap(platformName)} ${lightCyan.wrap('[aarch64 (0 B)]')} -🟠 Track: Staging''', +🟠 Track: ${lightCyan.wrap('Staging')}''', ), ), ), diff --git a/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart b/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart index b7b602ca..24e74601 100644 --- a/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart +++ b/packages/shorebird_cli/test/src/commands/patch/patch_ios_framework_command_test.dart @@ -747,7 +747,7 @@ Please re-run the release command for this version or create a new release.'''), that: contains( ''' đŸ•šī¸ Platform: ${lightCyan.wrap('ios')} ${lightCyan.wrap('[aarch64 (0 B)]')} -đŸŸĸ Track: Production''', +đŸŸĸ Track: ${lightCyan.wrap('Production')}''', ), ), ),