We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 677faa0 commit 1b5b214Copy full SHA for 1b5b214
apps/cli/src/commands/system/prune.ts
@@ -0,0 +1,23 @@
1
+import { CommandModule } from 'yargs';
2
+import { TcBroker } from 'tailchat-server-sdk';
3
+import defaultBrokerConfig from 'tailchat-server-sdk/dist/runner/moleculer.config';
4
+import { config } from 'dotenv';
5
+
6
+export const pruneCommand: CommandModule = {
7
+ command: 'prune',
8
+ describe: 'Remove outdate data',
9
+ builder: undefined,
10
+ async handler(args) {
11
+ config();
12
13
+ // TODO: search all outdate data
14
15
+ // TODO: Call file service to remove them
16
17
+ // const broker = new TcBroker({
18
+ // ...defaultBrokerConfig,
19
+ // transporter: process.env.TRANSPORTER,
20
+ // });
21
+ // await broker.start();
22
+ },
23
+};
0 commit comments