()
| 201 | |
| 202 | @command('pont.regenerate') |
| 203 | async regenerate() { |
| 204 | await showProgress('生成接口代码', async (report) => { |
| 205 | report('执行中...'); |
| 206 | const currentManager = this.manager.getCurrentOriginManage(); |
| 207 | currentManager.updateDataSourceByRemoteDataSource(); |
| 208 | await this.manager.generateCode(); |
| 209 | await currentManager.updateDiffs(); |
| 210 | getPontOriginsProvider().refresh(this.manager); |
| 211 | report('完成'); |
| 212 | }); |
| 213 | } |
| 214 | |
| 215 | @command('pont.syncRemoteAndGenerate') |
| 216 | async syncRemoteAndGenerate() { |
nothing calls this directly
no test coverage detected