(id: string, options: StoreRemoveOptions = {})
| 599 | } |
| 600 | |
| 601 | async remove(id: string, options: StoreRemoveOptions = {}): Promise<void> { |
| 602 | try { |
| 603 | const target = await prepareStoreCleanup({ id }); |
| 604 | await confirmRemove(target.id, target.root, options); |
| 605 | const payload = toCleanupOutput(await removeStore(target)); |
| 606 | |
| 607 | if (options.json) { |
| 608 | printJson(payload); |
| 609 | return; |
| 610 | } |
| 611 | |
| 612 | printCleanupHuman('Removed store', payload); |
| 613 | } catch (error) { |
| 614 | this.handleFailure( |
| 615 | options.json, |
| 616 | { store: null, registry: null, files: null, status: [] }, |
| 617 | error |
| 618 | ); |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | async list(options: StoreJsonOptions = {}): Promise<void> { |
| 623 | try { |
no test coverage detected