mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
feat: ✨ Add CLI command to rebuild index
This commit is contained in:
parent
19c15f7e96
commit
93b8609411
3 changed files with 89 additions and 6 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import { configureLoggers } from "@/loggers";
|
||||
import { execute } from "@oclif/core";
|
||||
import EmojiAdd from "./commands/emoji/add";
|
||||
import EmojiDelete from "./commands/emoji/delete";
|
||||
import EmojiImport from "./commands/emoji/import";
|
||||
import EmojiList from "./commands/emoji/list";
|
||||
import IndexRebuild from "./commands/index/rebuild";
|
||||
import Start from "./commands/start";
|
||||
import UserCreate from "./commands/user/create";
|
||||
import UserDelete from "./commands/user/delete";
|
||||
|
|
@ -10,6 +12,8 @@ import UserList from "./commands/user/list";
|
|||
import UserRefetch from "./commands/user/refetch";
|
||||
import UserReset from "./commands/user/reset";
|
||||
|
||||
await configureLoggers();
|
||||
|
||||
// Use "explicit" oclif strategy to avoid issues with oclif's module resolver and bundling
|
||||
export const commands = {
|
||||
"user:list": UserList,
|
||||
|
|
@ -21,6 +25,7 @@ export const commands = {
|
|||
"emoji:delete": EmojiDelete,
|
||||
"emoji:list": EmojiList,
|
||||
"emoji:import": EmojiImport,
|
||||
"index:rebuild": IndexRebuild,
|
||||
start: Start,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue