Passed
Push — main ( b7799b...6c7a2f )
by Bjarn
03:09 queued 01:45
created

PackageManager.uninstall   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
abstract class PackageManager {
2
    abstract name: string
3
    abstract path: string
4
    abstract alias: string
5
6
    abstract install(pkg: string, cask: boolean): Promise<boolean>
7
8
    abstract uninstall(pkg: string, cask: boolean): Promise<boolean>
9
10
    abstract remove(pkg: string): Promise<boolean>
11
12
    abstract update(): Promise<boolean>
13
14
    abstract upgrade(pkg: string | undefined): Promise<boolean>
15
16
    abstract packageIsInstalled(pkg: string): Promise<boolean>
17
}
18
19
export default PackageManager