-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinterfaces.ts
126 lines (113 loc) · 2.47 KB
/
interfaces.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
export interface KeyPressEvent {
action?: string
name: string
ctrl: boolean
meta: boolean
shift: boolean
option: boolean
sequence: string
raw: string
}
export interface CreatedChoicesAndScriptNames {
choices: Array<Choice>
allScriptNames: Array<string>
}
export interface Argv {
i?: string | null | Array<string | null>
include?: string | null | Array<string | null>
e?: string | null | Array<string | null>
exclude?: string | null | Array<string | null>
}
export interface ExecutionGroup {
category: string
name: string
initial: Array<string>
scriptNames: Array<string>
allowMultipleScripts: boolean
scriptExecutable: string
customSortText: string
scriptCommand: Array<string> | undefined
}
export interface Package {
packageName: string
script: string,
scriptExecutable: string,
scriptCommand: Array<string>
}
export interface SavedEntry {
packages: Array<Package>
cliVersion: string
}
export interface SavedEntries {
[keys: string]: SavedEntry
}
export interface IRushSelect {
toggleSelectionForScaleIndexInChoice: (choice: ChoiceInPrompt) => void
}
export interface Choice {
name: string
category: string
availableScripts: string[]
scriptExecutable: string
scriptCommand: Array<string>
initial?: Array<string>
}
export interface ScaleWithIndex {
index: number
}
export interface ScaleWithName {
name: string
executionGroupIndex?: number
message?: string
}
export interface ChoiceInPrompt {
allowMultipleScripts: boolean
ansiLessName?: string
scaleIndex: number
selected: Array<number>
hint?: string
name: string
category: string
availableScripts: string[]
scaleItemsNotToAutoSelect: Array<number>
executionGroupIndex?: number
initial: Array<string>
normalized: boolean
message: string
value: string
input: string
index: number
cursor: number
level: number
indent: string
path: string
enabled: boolean
scale: ScaleWithIndex[]
customSortText?: string
}
export interface Project {
packageName: string
projectFolder: string
reviewCategory: string
shouldPublish: boolean
packageJson: {
name: string
version: string
main: string
description: string
author: string
scripts: {
[keys: string]: string
}
devDependencies: {
[keys: string]: string
}
}
}
export interface SubmittedChoice {
packageName: string
script: string
scriptExecutable: string | undefined
scriptCommand: Array<string> | undefined
project: undefined | Project
}