Passed
Push — develop ( 2aedbc...c21af9 )
by Bjarn
01:37
created

src/client/packageManager.ts   A

Complexity

Total Complexity 6
Complexity/F 1

Size

Lines of Code 19
Function Count 6

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 18
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 6
mnd 0
bc 0
fnc 6
bpm 0
cpm 1
noi 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