Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(shorebird_cli): rename stable deployment track for consistency #2619

Merged
merged 3 commits into from
Nov 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cleanup
  • Loading branch information
felangel committed Nov 13, 2024
commit 8794ddb149f13919d5a22c698e2624f9bc27ba46
Original file line number Diff line number Diff line change
Expand Up @@ -441,21 +441,20 @@ Please re-run the release command for this version or create a new release.''');
final size = formatBytes(patchArtifactBundles[arch]!.size);
return '${arch.name} ($size)';
});

String trackSummary() {
final trackSummary = (() {
return switch (track) {
DeploymentTrack.staging => '🟠 Track: ${lightCyan.wrap('Staging')}',
DeploymentTrack.beta => 'πŸ”΅ Track: ${lightCyan.wrap('Beta')}',
DeploymentTrack.stable => '🟒 Track: ${lightCyan.wrap('Stable')}',
};
}
})();

final summary = [
'''πŸ“± App: ${lightCyan.wrap(app.displayName)} ${lightCyan.wrap('(${app.appId})')}''',
if (flavor != null) '🍧 Flavor: ${lightCyan.wrap(flavor)}',
'πŸ“¦ Release Version: ${lightCyan.wrap(releaseVersion)}',
'''πŸ•ΉοΈ Platform: ${lightCyan.wrap(patcher.releaseType.releasePlatform.name)} ${lightCyan.wrap('[${archMetadata.join(', ')}]')}''',
trackSummary(),
trackSummary,
if (patcher.linkPercentage != null &&
patcher.linkPercentage! < Patcher.minLinkPercentage)
'''πŸ” Debug Info: ${lightCyan.wrap(patcher.debugInfoFile.path)}''',
Expand Down
Loading