From dc095deb04b9aefa64c13384e5c259faf776f0b4 Mon Sep 17 00:00:00 2001 From: Niels Maerten Date: Tue, 26 Nov 2024 20:25:59 +0100 Subject: [PATCH 1/2] Update exit message to include GitHub star request Update the exit message to ask for a star on GitHub in addition to referring to the ko-fi page. * Add a new `githubStar` message to the `messages` object in `src/constants.ts`. * Update the `displayGoodbyeMessage` function in `src/lib/cli.ts` to include the new `githubStar` message. * Add a section in `README.md` asking users to leave a star on GitHub in addition to the ko-fi page. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/nielsmaerten/ynab-buddy?shareId=XXXX-XXXX-XXXX-XXXX). --- README.md | 8 ++++++++ src/constants.ts | 1 + src/lib/cli.ts | 2 ++ 3 files changed, 11 insertions(+) diff --git a/README.md b/README.md index cb70cd30..137b4d97 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,14 @@ Did ynab-buddy save you some time? If so, consider showing your support by buyin Thank you for your support! 🙌 +## ⭐ GitHub Star + +If you like this tool, please leave a star on GitHub! Your support helps others discover this tool and motivates me to keep improving it. + +[⭐ Leave a star on GitHub](https://github.com/nielsmaerten/ynab-buddy) + +Thank you for your support! 🙌 + ## ⚠️ Disclaimer ynab-buddy is a **community-made tool** for YNAB. diff --git a/src/constants.ts b/src/constants.ts index 56b89285..637ea772 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -40,6 +40,7 @@ export const messages = { sponsor: "Did this tool just save you some time? Then maybe consider buying me a coffee:", sponsorLink: "https://go.niels.me/coffee", + githubStar: "If you like this tool, please leave a star on GitHub: https://github.com/nielsmaerten/ynab-buddy", exit: "Press any key to exit", newVersion: { notice: "A newer version of ynab-buddy is available.", diff --git a/src/lib/cli.ts b/src/lib/cli.ts index c5fa8c9c..8ef0041f 100644 --- a/src/lib/cli.ts +++ b/src/lib/cli.ts @@ -44,6 +44,8 @@ export function displayGoodbyeMessage() { console.log(messages.sponsor); console.log(chalk.bgBlueBright(messages.sponsorLink)); console.log(""); + console.log(messages.githubStar); + console.log(""); } export async function exitApp() { From b136c289c02fb84ed2fbedfb8a6944fcc6cf398d Mon Sep 17 00:00:00 2001 From: Niels Maerten Date: Tue, 26 Nov 2024 19:37:38 +0000 Subject: [PATCH 2/2] Refactor README and messages to streamline support requests and enhance GitHub star encouragement --- README.md | 11 ++--------- src/constants.ts | 3 ++- src/lib/cli.ts | 1 + 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 137b4d97..1a194528 100644 --- a/README.md +++ b/README.md @@ -43,18 +43,11 @@ To make ynab-buddy work seamlessly with your bank, open the config file and foll - Tech docs (for developers): [CONTRIBUTING.md](./CONTRIBUTING.md) - Please **DO NOT** contact YNAB Support. This is a community project, not an official YNAB service. -## 😊 Coffee? +## ☕ budget nerd + coffee = ynab-buddy Did ynab-buddy save you some time? If so, consider showing your support by buying me a coffee! Your kind gesture helps me continue improving and maintaining this tool for the YNAB community. -[☕ Buy me a coffee](https://ko-fi.com/nielsmaerten) - -Thank you for your support! 🙌 - -## ⭐ GitHub Star - -If you like this tool, please leave a star on GitHub! Your support helps others discover this tool and motivates me to keep improving it. - +[☕ Buy me a coffee](https://ko-fi.com/nielsmaerten) [⭐ Leave a star on GitHub](https://github.com/nielsmaerten/ynab-buddy) Thank you for your support! 🙌 diff --git a/src/constants.ts b/src/constants.ts index 637ea772..57576fdf 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -40,7 +40,8 @@ export const messages = { sponsor: "Did this tool just save you some time? Then maybe consider buying me a coffee:", sponsorLink: "https://go.niels.me/coffee", - githubStar: "If you like this tool, please leave a star on GitHub: https://github.com/nielsmaerten/ynab-buddy", + githubStar: "Or, leave a star on GitHub:", + githubLink: "https://github.com/nielsmaerten/ynab-buddy", exit: "Press any key to exit", newVersion: { notice: "A newer version of ynab-buddy is available.", diff --git a/src/lib/cli.ts b/src/lib/cli.ts index 8ef0041f..89f909a9 100644 --- a/src/lib/cli.ts +++ b/src/lib/cli.ts @@ -45,6 +45,7 @@ export function displayGoodbyeMessage() { console.log(chalk.bgBlueBright(messages.sponsorLink)); console.log(""); console.log(messages.githubStar); + console.log(chalk.bgBlueBright(messages.githubLink)); console.log(""); }