Skip to content

Commit c699f59

Browse files
author
Taniya Mathur
committed
Improve URL output display in publish.py
1 parent 6431ff4 commit c699f59

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

publish.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,6 +1671,7 @@ def update_lib_checksum(self):
16711671

16721672
def print_outputs(self):
16731673
"""Print final outputs using Rich table formatting"""
1674+
16741675
# Generate S3 URL for the main template
16751676
template_url = f"https://s3.{self.region}.amazonaws.com/{self.bucket}/{self.prefix}/{self.main_template}"
16761677

@@ -1689,14 +1690,18 @@ def print_outputs(self):
16891690
f" • Public Access: [yellow]{'Yes' if self.public else 'No'}[/yellow]"
16901691
)
16911692

1692-
# Then display URLs
1693+
# Display hyperlinks with complete URLs as the display text
16931694
self.console.print("\n[bold green]Deployment Outputs[/bold green]")
1694-
self.console.print("[cyan]Template URL (use to update existing stack):[/cyan]")
1695-
self.console.print(f"{template_url}")
1696-
self.console.print(
1697-
"\n[cyan]1-Click Launch URL (use to launch new stack):[/cyan]"
1698-
)
1699-
self.console.print(f"{launch_url}")
1695+
1696+
# 1-Click Launch hyperlink with full URL as display text
1697+
self.console.print("\n[cyan]1-Click Launch (creates new stack):[/cyan]")
1698+
launch_link = f"[link={launch_url}]{launch_url}[/link]"
1699+
self.console.print(f" {launch_link}")
1700+
1701+
# Template URL hyperlink with full URL as display text
1702+
self.console.print("\n[cyan]Template URL (for updating existing stack):[/cyan]")
1703+
template_link = f"[link={template_url}]{template_url}[/link]"
1704+
self.console.print(f" {template_link}")
17001705

17011706
def run(self, args):
17021707
"""Main execution method"""

0 commit comments

Comments
 (0)