delete_site:删除本地站点
(siteName: string)
| 659 | |
| 660 | /** delete_site:删除本地站点 */ |
| 661 | async deleteSite(siteName: string): Promise<any> { |
| 662 | const site = await this.findSiteByName(siteName) |
| 663 | if (!site) { |
| 664 | throw new Error(`Site ${siteName} not found`) |
| 665 | } |
| 666 | const data = await callFork(this.forkManager, 'host', 'handleHost', site, 'del') |
| 667 | const list = data?.host ?? [] |
| 668 | if (Array.isArray(list)) { |
| 669 | await this.finalizeHostMutation(list, false) |
| 670 | } |
| 671 | return data |
| 672 | } |
| 673 | |
| 674 | /** |
| 675 | * list_online_versions:查询某个模块的线上可用版本列表。 |
no test coverage detected