Conditions | 2 |
Total Lines | 12 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import {client} from '../utils/os' |
||
25 | uninstall = async (): Promise<boolean> => { |
||
26 | if (!(await this.isInstalled())) { |
||
27 | console.log(`${this.name} is not installed`) |
||
28 | } |
||
29 | |||
30 | console.log(`Uninstalling ${this.name}...`) |
||
31 | |||
32 | await client().packageManager.uninstall(this.alias, false) |
||
33 | |||
34 | console.log(`Installed ${this.name}`) |
||
35 | |||
36 | return true |
||
37 | } |
||
48 | export default Tool |