Skip to content

Commit ced3b50

Browse files
committed
chore: 生成client时渲染文件名
1 parent 38e55c0 commit ced3b50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@ spinner.add({
104104

105105
spinner.add({
106106
title: '写入指定文件',
107-
task: async (ctx) => {
108-
await Promise.all(
107+
task: async (ctx, task) => {
108+
const files = await Promise.all(
109109
ctx.configs.map((config) => {
110110
return saveToFile(config, ctx.projects);
111111
}),
112112
);
113+
task.title += ' ' + colors.gray(files.join(', '));
113114
},
114115
});
115116

0 commit comments

Comments
 (0)