Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: garden community command #4129

Merged
merged 2 commits into from
Apr 27, 2023
Merged

feat: garden community command #4129

merged 2 commits into from
Apr 27, 2023

Conversation

Walther
Copy link
Contributor

@Walther Walther commented Apr 27, 2023

What this PR does / why we need it:

Adds a new command garden community that opens the Garden Community Discord invite link.

Which issue(s) this PR fixes:

Completes the task defined on the Q2 ideas Miro board.

Special notes for your reviewer:

Sorted the imports in commands.ts as a separate commit, as they were almost sorted already.

@Walther Walther merged commit 9099e0c into 0.13 Apr 27, 2023
@Walther Walther deleted the garden-community-command branch April 27, 2023 08:46
async action(): Promise<CommandResult> {
const discordInvite = "https://discord.gg/FrmhuUjFs6"
// eslint-disable-next-line no-console
console.log(discordInvite)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A colored message might be a better option here. Something like "Welcome to our community! Join us on Discord: {link}".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My initial thought was to keep it simple and only output the link in order to make it easier to copy/paste for folks who are not using a terminal emulator that supports clickable link detection. The command is also calling an open handler, so the printed line is more of a backup method anyway, and leaves a trail of history for what was opened.

But I have no strong opinions here - we can also tweak this further if we want to, easy changes to make ❤️

This was referenced May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants