mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Some checks failed
CodeQL Scan / Analyze (javascript-typescript) (push) Failing after 51s
Build Docker Images / lint (push) Successful in 28s
Build Docker Images / check (push) Successful in 54s
Build Docker Images / tests (push) Failing after 6s
Build Docker Images / build (server, Dockerfile, ${{ github.repository_owner }}/server) (push) Has been skipped
Build Docker Images / build (worker, Worker.Dockerfile, ${{ github.repository_owner }}/worker) (push) Has been skipped
Deploy Docs to GitHub Pages / build (push) Failing after 12s
Deploy Docs to GitHub Pages / Deploy (push) Has been skipped
Mirror to Codeberg / Mirror (push) Failing after 0s
Nix Build / check (push) Failing after 32m24s
38 lines
1.6 KiB
TypeScript
38 lines
1.6 KiB
TypeScript
import { configureLoggers } from "@/loggers";
|
|
import { execute } from "@oclif/core";
|
|
import Start from "./commands/start.ts";
|
|
|
|
await configureLoggers();
|
|
|
|
// Use "explicit" oclif strategy to avoid issues with oclif's module resolver and bundling
|
|
export const commands = {
|
|
"user:list": (await import("./commands/user/list.ts")).default,
|
|
"user:delete": (await import("./commands/user/delete.ts")).default,
|
|
"user:create": (await import("./commands/user/create.ts")).default,
|
|
"user:reset": (await import("./commands/user/reset.ts")).default,
|
|
"user:refetch": (await import("./commands/user/refetch.ts")).default,
|
|
"user:token": (await import("./commands/user/token.ts")).default,
|
|
"emoji:add": (await import("./commands/emoji/add.ts")).default,
|
|
"emoji:delete": (await import("./commands/emoji/delete.ts")).default,
|
|
"emoji:list": (await import("./commands/emoji/list.ts")).default,
|
|
"emoji:import": (await import("./commands/emoji/import.ts")).default,
|
|
"index:rebuild": (await import("./commands/index/rebuild.ts")).default,
|
|
"federation:instance:refetch": (
|
|
await import("./commands/federation/instance/refetch.ts")
|
|
).default,
|
|
"federation:user:finger": (
|
|
await import("./commands/federation/user/finger.ts")
|
|
).default,
|
|
"federation:user:fetch": (
|
|
await import("./commands/federation/user/fetch.ts")
|
|
).default,
|
|
"generate-keys": (await import("./commands/generate-keys.ts")).default,
|
|
start: Start,
|
|
"notes:recalculate": (await import("./commands/notes/recalculate.ts"))
|
|
.default,
|
|
};
|
|
|
|
if (import.meta.path === Bun.main) {
|
|
await execute({ dir: import.meta.url });
|
|
}
|