From 717e434ce059958a12265931e03b13abfaae810c Mon Sep 17 00:00:00 2001 From: xion Date: Fri, 16 May 2025 03:37:04 +0800 Subject: [PATCH] add command --- assistant/src/program.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/assistant/src/program.ts b/assistant/src/program.ts index 84716ca..32fc57b 100644 --- a/assistant/src/program.ts +++ b/assistant/src/program.ts @@ -16,6 +16,14 @@ const ls = new Command('ls').description('List files in the current directory'). }); program.addCommand(ls); +const home = new Command('home').description('启动以全局目录').action(() => {}); // @ts-ignore +program.addCommand(home); +const root = new Command('root') + .argument('', '自定义启动路径') + .description('自定义启动路径') + .action(() => {}); // @ts-ignore +program.addCommand(root); + export { program, Command, assistantConfig }; /**