init
This commit is contained in:
@@ -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 };
|
||||
|
||||
/**
|
||||
* 在命令行中运行程序
|
||||
|
||||
Reference in New Issue
Block a user