feat: 更新去除之前的打包后端的模式

This commit is contained in:
2025-03-20 18:22:24 +08:00
parent f3f6d93b64
commit 3d45a83129
6 changed files with 412 additions and 304 deletions

View File

@@ -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]);
};