Conditions | 2 |
Total Lines | 9 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import {client} from '../utils/os' |
||
11 | install = async (): Promise<boolean> => { |
||
12 | if (await this.isInstalled()) { |
||
13 | console.log(`${this.name} already is installed`) |
||
14 | return false |
||
15 | } |
||
16 | |||
17 | console.log(`Installing ${this.name}...`) |
||
18 | await client().packageManager.install(this.alias, false) |
||
19 | return true |
||
20 | } |
||
48 | export default Tool |