(
name: string,
options: { cowork?: boolean },
)
| 589 | |
| 590 | // marketplace remove (lines 5576–5598) |
| 591 | export async function marketplaceRemoveHandler( |
| 592 | name: string, |
| 593 | options: { cowork?: boolean }, |
| 594 | ): Promise<void> { |
| 595 | if (options.cowork) setUseCoworkPlugins(true) |
| 596 | try { |
| 597 | await removeMarketplaceSource(name) |
| 598 | clearAllCaches() |
| 599 | |
| 600 | logEvent('ncode_marketplace_removed', { |
| 601 | marketplace_name: |
| 602 | name as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, |
| 603 | }) |
| 604 | |
| 605 | cliOk(`${figures.tick} Successfully removed marketplace: ${name}`) |
| 606 | } catch (error) { |
| 607 | handleMarketplaceError(error, 'remove marketplace') |
| 608 | } |
| 609 | } |
| 610 | |
| 611 | // marketplace update (lines 5609–5672) |
| 612 | export async function marketplaceUpdateHandler( |
no test coverage detected