Skip to content

Commit 372ffad

Browse files
committed
Add viral tweet intent link to terminal report output
1 parent 7a282ba commit 372ffad

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

roast/reporter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ def render_terminal_report(
9797

9898
console.print(f"\n[bold cyan]HTML report saved to: {Path(output_path)}[/]")
9999

100+
overall_score = report.scores.get("Overall", 0)
101+
tweet_text = f"My+codebase+scored+{overall_score}/100+🔥+roast-my-code+github.com/Rohan5commit/roast-my-code"
102+
tweet_url = f"https://twitter.com/intent/tweet?text={tweet_text}"
103+
console.print(f"\n[bold magenta]Post your score → [link={tweet_url}]{tweet_url}[/link][/]")
104+
100105

101106
def _badge_color(score: int) -> str:
102107
if score >= 75:

0 commit comments

Comments
 (0)