feat: 更新去除之前的打包后端的模式
This commit is contained in:
@@ -16,3 +16,12 @@ const ls = new Command('ls').description('List files in the current directory').
|
||||
program.addCommand(ls);
|
||||
|
||||
export { program, Command };
|
||||
|
||||
/**
|
||||
* 在命令行中运行程序
|
||||
* @param args
|
||||
*/
|
||||
export const runProgram = (args: string[]) => {
|
||||
const [_app, _command] = process.argv;
|
||||
program.parse([_app, _command, ...args]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user