feat: 修改为bun,优化代码
This commit is contained in:
12
src/scripts/list-app.ts
Normal file
12
src/scripts/list-app.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { AppListModel, AppModel } from '../routes/app-manager/module/index.ts';
|
||||
|
||||
import { program, Command, close } from './common.ts';
|
||||
|
||||
const app = program.command('app');
|
||||
|
||||
const appList = new Command('list').action(async () => {
|
||||
const list = await AppListModel.findAll();
|
||||
console.log(list.map((item) => item.toJSON()));
|
||||
close();
|
||||
});
|
||||
app.addCommand(appList);
|
||||
Reference in New Issue
Block a user