Skip to content

Commit

Permalink
feat: add community subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 26, 2024
1 parent bbf4a04 commit 2146472
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import status from "./src/cmd/status.ts";
import restart from "./src/cmd/restart.ts";
import stop from "./src/cmd/stop.ts";
import echo from "./src/cmd/echo.ts";
import community from "./src/cmd/community.ts";

export async function main() {
Deno.env.set(
Expand Down Expand Up @@ -249,6 +250,10 @@ export async function main() {
.action(async function (_, service) {
await echo(service);
})
.command("community", "Join our community Discord to chat with us")
.action(async function () {
await community();
})
.globalOption("--check-update <checkUpdate:boolean>", "check for update", {
default: true,
})
Expand Down
11 changes: 11 additions & 0 deletions src/cmd/community.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { open } from "../../deps.ts";

export default function community() {
const DISCORD_INVITE = "https://discord.gg/V4U6dPskKc";
console.log(DISCORD_INVITE);

open(DISCORD_INVITE).catch((err) => {
console.error(err);
Deno.exit(1);
});
}

0 comments on commit 2146472

Please sign in to comment.