mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
20 lines
625 B
TypeScript
20 lines
625 B
TypeScript
import { execute } from "@oclif/core";
|
|
import EmojiAdd from "./commands/emoji/add";
|
|
import UserCreate from "./commands/user/create";
|
|
import UserDelete from "./commands/user/delete";
|
|
import UserList from "./commands/user/list";
|
|
import UserReset from "./commands/user/reset";
|
|
|
|
// Use "explicit" oclif strategy to avoid issues with oclif's module resolver and bundling
|
|
export const commands = {
|
|
"user:list": UserList,
|
|
"user:delete": UserDelete,
|
|
"user:create": UserCreate,
|
|
"user:reset": UserReset,
|
|
"emoji:add": EmojiAdd,
|
|
};
|
|
|
|
if (import.meta.path === Bun.main) {
|
|
await execute({ dir: import.meta.url });
|
|
}
|