Skip to content

Commit 8d50257

Browse files
committed
πŸ’„ Update how we show messages
Shortcake-Parent: main
1 parent 8a39a12 commit 8d50257

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

β€Žsrc/fastapi_cloud_cli/commands/deploy.pyβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ def _wait_for_deployment(
468468
) as progress,
469469
APIClient() as client,
470470
):
471+
progress.metadata["done_emoji"] = "πŸš€"
471472
try:
472473
for log in client.stream_build_logs(deployment.id):
473474
time_elapsed = time.monotonic() - started_at
@@ -756,6 +757,7 @@ def deploy(
756757
toolkit.progress(title="Creating deployment") as progress,
757758
handle_http_errors(progress),
758759
):
760+
progress.metadata["done_emoji"] = "πŸ“¦"
759761
logger.debug("Creating deployment for app: %s", app.id)
760762
deployment = _create_deployment(app.id)
761763

β€Žsrc/fastapi_cloud_cli/utils/cli.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _get_tag_segments(
4040
tag = emojis[self.animation_counter % len(emojis)]
4141

4242
if done:
43-
tag = emojis[-1]
43+
tag = metadata.get("done_emoji", emojis[-1])
4444

4545
left_padding = self.tag_width - 1
4646
left_padding = max(0, left_padding)

0 commit comments

Comments
Β (0)