refactor(shorebird_cli): minor improvements to the output and ergonomics of --prod (#1362)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -54,6 +54,7 @@ class PreviewCommand extends ShorebirdCommand {
|
||||
)
|
||||
..addFlag(
|
||||
'staging',
|
||||
negatable: false,
|
||||
help: 'Preview the release on the staging environment.',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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')}''',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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')}''',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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')}''',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
+1
-1
@@ -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')}''',
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user