test(cli): always print tweet URL

This commit is contained in:
Peter Steinberger
2025-12-26 22:04:08 +01:00
parent 1007d051e4
commit a3d1ba29f7
3 changed files with 21 additions and 2 deletions
+8
View File
@@ -76,3 +76,11 @@ export function formatStatsLine(
if (!cfg.emoji) return `Likes ${likeCount} Retweets ${retweetCount} Replies ${replyCount}`;
return `❤️ ${likeCount} 🔁 ${retweetCount} 💬 ${replyCount}`;
}
export function formatTweetUrl(tweetId: string): string {
return `https://x.com/i/status/${tweetId}`;
}
export function formatTweetUrlLine(tweetId: string, cfg: OutputConfig): string {
return `${labelPrefix('url', cfg)}${formatTweetUrl(tweetId)}`;
}