This commit is contained in:
2025-04-26 03:15:11 +08:00
parent 9eb4d06939
commit bcc12209e0
28 changed files with 1708 additions and 126 deletions

View File

@@ -1,4 +1,5 @@
import { program, Command } from 'commander';
import { assistantConfig } from './config.ts';
import fs from 'fs';
// 将多个子命令加入主程序中
let version = '0.0.1';
@@ -15,7 +16,7 @@ const ls = new Command('ls').description('List files in the current directory').
});
program.addCommand(ls);
export { program, Command };
export { program, Command, assistantConfig };
/**
* 在命令行中运行程序