Skip to content

Commit 55e9e68

Browse files
feat: add Discord link to CLI help text (#1061)
* feat: add Discord link to CLI help text - Add Discord link after 24/7 Support line in CLI help text - Update both main help text (ui.ts) and may-the-fourth command - Use format: 🎮 Discord: https://lingo.dev/go/discord - Maintain consistent formatting and alignment with existing links Co-Authored-By: Max Prilutskiy <[email protected]> * fix: apply prettier formatting to may-the-fourth.ts Co-Authored-By: Max Prilutskiy <[email protected]> * chore: add changeset for Discord link feature Co-Authored-By: Max Prilutskiy <[email protected]> * feat: update CLI help text copy to 'Star the repo' and 'Join Discord' Co-Authored-By: Max Prilutskiy <[email protected]> * feat: remove 24/7 Support line from CLI help text Keep only 3 lines in order: Docs, Star the repo, Join Discord Co-Authored-By: Max Prilutskiy <[email protected]> * fix: apply prettier formatting to may-the-fourth.ts Co-Authored-By: Max Prilutskiy <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Max Prilutskiy <[email protected]> Co-authored-by: Max Prilutskiy <[email protected]>
1 parent 2d67369 commit 55e9e68

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

.changeset/happy-cherries-yawn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"lingo.dev": minor
3+
---
4+
5+
Add Discord link to CLI help text

packages/cli/src/cli/cmd/may-the-fourth.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,11 @@ async function renderHero() {
8686
)} - open-source, AI-powered i18n CLI for web & mobile localization.`,
8787
);
8888
console.log(" ");
89+
console.log(chalk.hex(colors.blue)("📚 Docs: https://lingo.dev/go/docs"));
8990
console.log(
90-
chalk.hex(colors.blue)("⭐ GitHub Repo: https://lingo.dev/go/gh"),
91+
chalk.hex(colors.blue)("⭐ Star the repo: https://lingo.dev/go/gh"),
92+
);
93+
console.log(
94+
chalk.hex(colors.blue)("🎮 Join Discord: https://lingo.dev/go/discord"),
9195
);
92-
console.log(chalk.hex(colors.blue)("💬 24/7 Support: [email protected]"));
9396
}

packages/cli/src/cli/utils/ui.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,25 @@ export async function renderHero() {
3232
);
3333
console.log("");
3434

35-
const label1 = "⭐ GitHub Repo:";
36-
const label2 = "📚 Docs:";
37-
const label3 = "💬 24/7 Support:";
35+
const label1 = "📚 Docs:";
36+
const label2 = "⭐ Star the repo:";
37+
const label3 = "🎮 Join Discord:";
3838
const maxLabelWidth = 17; // Approximate visual width accounting for emoji
3939

4040
console.log(
41-
`${chalk.hex(colors.blue)(label1.padEnd(maxLabelWidth))} ${chalk.hex(
42-
colors.blue,
43-
)("https://lingo.dev/go/gh")}`,
44-
);
45-
console.log(
46-
`${chalk.hex(colors.blue)(label2.padEnd(maxLabelWidth + 1))} ${chalk.hex(
41+
`${chalk.hex(colors.blue)(label1.padEnd(maxLabelWidth + 1))} ${chalk.hex(
4742
colors.blue,
4843
)("https://lingo.dev/go/docs")}`,
4944
); // Docs emoji seems narrower
45+
console.log(
46+
`${chalk.hex(colors.blue)(label2.padEnd(maxLabelWidth))} ${chalk.hex(
47+
colors.blue,
48+
)("https://lingo.dev/go/gh")}`,
49+
);
5050
console.log(
5151
`${chalk.hex(colors.blue)(label3.padEnd(maxLabelWidth + 1))} ${chalk.hex(
5252
colors.blue,
53-
)("hi@lingo.dev")}`,
53+
)("https://lingo.dev/go/discord")}`,
5454
);
5555
}
5656

0 commit comments

Comments
 (0)