| Conditions | 2 |
| Total Lines | 12 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import execa from 'execa' |
||
| 30 | uninstall = async (): Promise<boolean> => { |
||
| 31 | if (!(await this.isInstalled())) { |
||
| 32 | console.log(`${this.name} is not installed`) |
||
| 33 | } |
||
| 34 | |||
| 35 | console.log(`Uninstalling ${this.name} using Composer...`) |
||
| 36 | |||
| 37 | await execa('composer', ['global', 'remove', 'beyondcode/expose']) |
||
| 38 | |||
| 39 | console.log(`Successfully uninstalled ${this.name}`) |
||
| 40 | |||
| 41 | return true |
||
| 42 | } |
||
| 53 | export default Expose |