(id: string, options: StoreJsonOptions = {})
| 580 | } |
| 581 | |
| 582 | async unregister(id: string, options: StoreJsonOptions = {}): Promise<void> { |
| 583 | try { |
| 584 | const payload = toCleanupOutput(await unregisterStore({ id })); |
| 585 | |
| 586 | if (options.json) { |
| 587 | printJson(payload); |
| 588 | return; |
| 589 | } |
| 590 | |
| 591 | printCleanupHuman('Unregistered store', payload); |
| 592 | } catch (error) { |
| 593 | this.handleFailure( |
| 594 | options.json, |
| 595 | { store: null, registry: null, files: null, status: [] }, |
| 596 | error |
| 597 | ); |
| 598 | } |
| 599 | } |
| 600 | |
| 601 | async remove(id: string, options: StoreRemoveOptions = {}): Promise<void> { |
| 602 | try { |
no test coverage detected