@teambit/cli 0.0.862 → 0.0.864

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,1170 +14,1279 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "ClassSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "cli.main.runtime.ts",
20
- "line": 29,
21
- "character": 1
19
+ "filePath": "index.ts",
20
+ "line": 3,
21
+ "character": 15
22
22
  },
23
- "signature": "class CLIMain",
24
23
  "name": "CLIMain",
25
- "members": [
26
- {
27
- "__schema": "VariableLikeSchema",
28
- "location": {
29
- "filePath": "cli.main.runtime.ts",
30
- "line": 30,
31
- "character": 3
32
- },
33
- "signature": "(property) CLIMain.groups: GroupsType",
34
- "name": "groups",
35
- "type": {
36
- "__schema": "TypeRefSchema",
24
+ "exportNode": {
25
+ "__schema": "ClassSchema",
26
+ "location": {
27
+ "filePath": "cli.main.runtime.ts",
28
+ "line": 29,
29
+ "character": 1
30
+ },
31
+ "signature": "class CLIMain",
32
+ "name": "CLIMain",
33
+ "members": [
34
+ {
35
+ "__schema": "VariableLikeSchema",
37
36
  "location": {
38
37
  "filePath": "cli.main.runtime.ts",
39
38
  "line": 30,
40
39
  "character": 3
41
40
  },
42
- "name": "GroupsType",
43
- "packageName": "@teambit/legacy/dist/cli/command-groups"
44
- },
45
- "isOptional": true,
46
- "defaultValue": "clone(groups)"
47
- },
48
- {
49
- "__schema": "ConstructorSchema",
50
- "location": {
51
- "filePath": "cli.main.runtime.ts",
52
- "line": 31,
53
- "character": 3
54
- },
55
- "signature": "constructor CLIMain(commandsSlot: CommandsSlot, onStartSlot: OnStartSlot, onCommandStartSlot: OnCommandStartSlot, onBeforeExitSlot: OnBeforeExitSlot, logger: Logger): CLIMain",
56
- "name": "constructor",
57
- "params": [
58
- {
59
- "__schema": "ParameterSchema",
41
+ "signature": "(property) CLIMain.groups: GroupsType",
42
+ "name": "groups",
43
+ "type": {
44
+ "__schema": "TypeRefSchema",
60
45
  "location": {
61
46
  "filePath": "cli.main.runtime.ts",
62
- "line": 32,
63
- "character": 5
47
+ "line": 30,
48
+ "character": 3
64
49
  },
65
- "name": "commandsSlot",
66
- "type": {
67
- "__schema": "TypeRefSchema",
50
+ "name": "GroupsType",
51
+ "packageName": "@teambit/legacy/dist/cli/command-groups"
52
+ },
53
+ "isOptional": true,
54
+ "defaultValue": "clone(groups)"
55
+ },
56
+ {
57
+ "__schema": "ConstructorSchema",
58
+ "location": {
59
+ "filePath": "cli.main.runtime.ts",
60
+ "line": 31,
61
+ "character": 3
62
+ },
63
+ "signature": "constructor CLIMain(commandsSlot: CommandsSlot, onStartSlot: OnStartSlot, onCommandStartSlot: OnCommandStartSlot, onBeforeExitSlot: OnBeforeExitSlot, logger: Logger): CLIMain",
64
+ "name": "constructor",
65
+ "params": [
66
+ {
67
+ "__schema": "ParameterSchema",
68
68
  "location": {
69
69
  "filePath": "cli.main.runtime.ts",
70
70
  "line": 32,
71
- "character": 27
71
+ "character": 5
72
72
  },
73
- "name": "CommandsSlot"
74
- },
75
- "isOptional": false,
76
- "isSpread": false
77
- },
78
- {
79
- "__schema": "ParameterSchema",
80
- "location": {
81
- "filePath": "cli.main.runtime.ts",
82
- "line": 33,
83
- "character": 5
73
+ "name": "commandsSlot",
74
+ "type": {
75
+ "__schema": "TypeRefSchema",
76
+ "location": {
77
+ "filePath": "cli.main.runtime.ts",
78
+ "line": 32,
79
+ "character": 27
80
+ },
81
+ "name": "CommandsSlot"
82
+ },
83
+ "isOptional": false,
84
+ "isSpread": false
84
85
  },
85
- "name": "onStartSlot",
86
- "type": {
87
- "__schema": "TypeRefSchema",
86
+ {
87
+ "__schema": "ParameterSchema",
88
88
  "location": {
89
89
  "filePath": "cli.main.runtime.ts",
90
90
  "line": 33,
91
- "character": 26
91
+ "character": 5
92
92
  },
93
- "name": "OnStartSlot",
94
- "internalFilePath": "cli.main.runtime.ts"
95
- },
96
- "isOptional": false,
97
- "isSpread": false
98
- },
99
- {
100
- "__schema": "ParameterSchema",
101
- "location": {
102
- "filePath": "cli.main.runtime.ts",
103
- "line": 34,
104
- "character": 5
93
+ "name": "onStartSlot",
94
+ "type": {
95
+ "__schema": "TypeRefSchema",
96
+ "location": {
97
+ "filePath": "cli.main.runtime.ts",
98
+ "line": 33,
99
+ "character": 26
100
+ },
101
+ "name": "OnStartSlot",
102
+ "internalFilePath": "cli.main.runtime.ts"
103
+ },
104
+ "isOptional": false,
105
+ "isSpread": false
105
106
  },
106
- "name": "onCommandStartSlot",
107
- "type": {
108
- "__schema": "TypeRefSchema",
107
+ {
108
+ "__schema": "ParameterSchema",
109
109
  "location": {
110
110
  "filePath": "cli.main.runtime.ts",
111
111
  "line": 34,
112
- "character": 34
112
+ "character": 5
113
113
  },
114
- "name": "OnCommandStartSlot",
115
- "internalFilePath": "cli.main.runtime.ts"
116
- },
117
- "isOptional": false,
118
- "isSpread": false
119
- },
120
- {
121
- "__schema": "ParameterSchema",
122
- "location": {
123
- "filePath": "cli.main.runtime.ts",
124
- "line": 35,
125
- "character": 5
114
+ "name": "onCommandStartSlot",
115
+ "type": {
116
+ "__schema": "TypeRefSchema",
117
+ "location": {
118
+ "filePath": "cli.main.runtime.ts",
119
+ "line": 34,
120
+ "character": 34
121
+ },
122
+ "name": "OnCommandStartSlot",
123
+ "internalFilePath": "cli.main.runtime.ts"
124
+ },
125
+ "isOptional": false,
126
+ "isSpread": false
126
127
  },
127
- "name": "onBeforeExitSlot",
128
- "type": {
129
- "__schema": "TypeRefSchema",
128
+ {
129
+ "__schema": "ParameterSchema",
130
130
  "location": {
131
131
  "filePath": "cli.main.runtime.ts",
132
132
  "line": 35,
133
- "character": 31
133
+ "character": 5
134
134
  },
135
- "name": "OnBeforeExitSlot",
136
- "internalFilePath": "cli.main.runtime.ts"
137
- },
138
- "isOptional": false,
139
- "isSpread": false
140
- },
141
- {
142
- "__schema": "ParameterSchema",
143
- "location": {
144
- "filePath": "cli.main.runtime.ts",
145
- "line": 36,
146
- "character": 5
135
+ "name": "onBeforeExitSlot",
136
+ "type": {
137
+ "__schema": "TypeRefSchema",
138
+ "location": {
139
+ "filePath": "cli.main.runtime.ts",
140
+ "line": 35,
141
+ "character": 31
142
+ },
143
+ "name": "OnBeforeExitSlot",
144
+ "internalFilePath": "cli.main.runtime.ts"
145
+ },
146
+ "isOptional": false,
147
+ "isSpread": false
147
148
  },
148
- "name": "logger",
149
- "type": {
150
- "__schema": "TypeRefSchema",
149
+ {
150
+ "__schema": "ParameterSchema",
151
151
  "location": {
152
152
  "filePath": "cli.main.runtime.ts",
153
153
  "line": 36,
154
- "character": 21
154
+ "character": 5
155
155
  },
156
- "name": "Logger",
157
- "componentId": {
158
- "scope": "teambit.harmony",
159
- "name": "logger"
160
- }
156
+ "name": "logger",
157
+ "type": {
158
+ "__schema": "TypeRefSchema",
159
+ "location": {
160
+ "filePath": "cli.main.runtime.ts",
161
+ "line": 36,
162
+ "character": 21
163
+ },
164
+ "name": "Logger",
165
+ "componentId": {
166
+ "scope": "teambit.harmony",
167
+ "name": "logger"
168
+ }
169
+ },
170
+ "isOptional": false,
171
+ "isSpread": false
172
+ }
173
+ ],
174
+ "returnType": {
175
+ "__schema": "ThisTypeSchema",
176
+ "location": {
177
+ "filePath": "cli.main.runtime.ts",
178
+ "line": 29,
179
+ "character": 1
161
180
  },
162
- "isOptional": false,
163
- "isSpread": false
164
- }
165
- ],
166
- "returnType": {
167
- "__schema": "ThisTypeSchema",
168
- "location": {
169
- "filePath": "cli.main.runtime.ts",
170
- "line": 29,
171
- "character": 1
181
+ "name": "CLIMain"
172
182
  },
173
- "name": "CLIMain"
174
- },
175
- "modifiers": []
176
- },
177
- {
178
- "__schema": "FunctionLikeSchema",
179
- "location": {
180
- "filePath": "cli.main.runtime.ts",
181
- "line": 42,
182
- "character": 3
183
+ "modifiers": []
183
184
  },
184
- "doc": {
185
- "__schema": "DocSchema",
185
+ {
186
+ "__schema": "FunctionLikeSchema",
186
187
  "location": {
187
188
  "filePath": "cli.main.runtime.ts",
188
- "line": 39,
189
+ "line": 42,
189
190
  "character": 3
190
191
  },
191
- "raw": "/**\n * registers a new command in to the CLI.\n */",
192
- "comment": "registers a new command in to the CLI."
193
- },
194
- "signature": "(method) CLIMain.register(...commands: CommandList): void",
195
- "name": "register",
196
- "params": [
197
- {
198
- "__schema": "ParameterSchema",
192
+ "doc": {
193
+ "__schema": "DocSchema",
199
194
  "location": {
200
195
  "filePath": "cli.main.runtime.ts",
201
- "line": 42,
202
- "character": 12
196
+ "line": 39,
197
+ "character": 3
203
198
  },
204
- "name": "commands",
205
- "type": {
206
- "__schema": "TypeRefSchema",
199
+ "raw": "/**\n * registers a new command in to the CLI.\n */",
200
+ "comment": "registers a new command in to the CLI."
201
+ },
202
+ "signature": "(method) CLIMain.register(...commands: CommandList): void",
203
+ "name": "register",
204
+ "params": [
205
+ {
206
+ "__schema": "ParameterSchema",
207
207
  "location": {
208
208
  "filePath": "cli.main.runtime.ts",
209
209
  "line": 42,
210
- "character": 25
210
+ "character": 12
211
+ },
212
+ "name": "commands",
213
+ "type": {
214
+ "__schema": "TypeRefSchema",
215
+ "location": {
216
+ "filePath": "cli.main.runtime.ts",
217
+ "line": 42,
218
+ "character": 25
219
+ },
220
+ "name": "CommandList"
211
221
  },
212
- "name": "CommandList"
222
+ "isOptional": false,
223
+ "isSpread": true
224
+ }
225
+ ],
226
+ "returnType": {
227
+ "__schema": "InferenceTypeSchema",
228
+ "location": {
229
+ "filePath": "cli.main.runtime.ts",
230
+ "line": 42,
231
+ "character": 3
213
232
  },
214
- "isOptional": false,
215
- "isSpread": true
216
- }
217
- ],
218
- "returnType": {
219
- "__schema": "InferenceTypeSchema",
233
+ "type": "void"
234
+ },
235
+ "modifiers": []
236
+ },
237
+ {
238
+ "__schema": "FunctionLikeSchema",
220
239
  "location": {
221
240
  "filePath": "cli.main.runtime.ts",
222
- "line": 42,
241
+ "line": 55,
223
242
  "character": 3
224
243
  },
225
- "type": "void"
226
- },
227
- "modifiers": []
228
- },
229
- {
230
- "__schema": "FunctionLikeSchema",
231
- "location": {
232
- "filePath": "cli.main.runtime.ts",
233
- "line": 55,
234
- "character": 3
235
- },
236
- "doc": {
237
- "__schema": "DocSchema",
238
- "location": {
239
- "filePath": "cli.main.runtime.ts",
240
- "line": 51,
241
- "character": 3
242
- },
243
- "raw": "/**\n * helpful for having the same command name in different environments (e.g. legacy and non-legacy).\n * for example `cli.unregister('tag');` removes the \"bit tag\" command.\n */",
244
- "comment": "helpful for having the same command name in different environments (e.g. legacy and non-legacy).\nfor example `cli.unregister('tag');` removes the \"bit tag\" command."
245
- },
246
- "signature": "(method) CLIMain.unregister(commandName: string): void",
247
- "name": "unregister",
248
- "params": [
249
- {
250
- "__schema": "ParameterSchema",
244
+ "doc": {
245
+ "__schema": "DocSchema",
251
246
  "location": {
252
247
  "filePath": "cli.main.runtime.ts",
253
- "line": 55,
254
- "character": 14
248
+ "line": 51,
249
+ "character": 3
255
250
  },
256
- "name": "commandName",
257
- "type": {
258
- "__schema": "KeywordTypeSchema",
251
+ "raw": "/**\n * helpful for having the same command name in different environments (e.g. legacy and non-legacy).\n * for example `cli.unregister('tag');` removes the \"bit tag\" command.\n */",
252
+ "comment": "helpful for having the same command name in different environments (e.g. legacy and non-legacy).\nfor example `cli.unregister('tag');` removes the \"bit tag\" command."
253
+ },
254
+ "signature": "(method) CLIMain.unregister(commandName: string): void",
255
+ "name": "unregister",
256
+ "params": [
257
+ {
258
+ "__schema": "ParameterSchema",
259
259
  "location": {
260
260
  "filePath": "cli.main.runtime.ts",
261
261
  "line": 55,
262
- "character": 27
262
+ "character": 14
263
263
  },
264
- "name": "string"
264
+ "name": "commandName",
265
+ "type": {
266
+ "__schema": "KeywordTypeSchema",
267
+ "location": {
268
+ "filePath": "cli.main.runtime.ts",
269
+ "line": 55,
270
+ "character": 27
271
+ },
272
+ "name": "string"
273
+ },
274
+ "isOptional": false,
275
+ "isSpread": false
276
+ }
277
+ ],
278
+ "returnType": {
279
+ "__schema": "InferenceTypeSchema",
280
+ "location": {
281
+ "filePath": "cli.main.runtime.ts",
282
+ "line": 55,
283
+ "character": 3
265
284
  },
266
- "isOptional": false,
267
- "isSpread": false
268
- }
269
- ],
270
- "returnType": {
271
- "__schema": "InferenceTypeSchema",
272
- "location": {
273
- "filePath": "cli.main.runtime.ts",
274
- "line": 55,
275
- "character": 3
285
+ "type": "void"
276
286
  },
277
- "type": "void"
278
- },
279
- "modifiers": []
280
- },
281
- {
282
- "__schema": "GetAccessorSchema",
283
- "location": {
284
- "filePath": "cli.main.runtime.ts",
285
- "line": 67,
286
- "character": 3
287
+ "modifiers": []
287
288
  },
288
- "signature": "(getter) CLIMain.commands: CommandList",
289
- "name": "commands",
290
- "type": {
291
- "__schema": "TypeRefSchema",
289
+ {
290
+ "__schema": "GetAccessorSchema",
292
291
  "location": {
293
292
  "filePath": "cli.main.runtime.ts",
294
293
  "line": 67,
295
294
  "character": 3
296
295
  },
297
- "name": "CommandList"
298
- }
299
- },
300
- {
301
- "__schema": "FunctionLikeSchema",
302
- "location": {
303
- "filePath": "cli.main.runtime.ts",
304
- "line": 74,
305
- "character": 3
296
+ "signature": "(getter) CLIMain.commands: CommandList",
297
+ "name": "commands",
298
+ "type": {
299
+ "__schema": "TypeRefSchema",
300
+ "location": {
301
+ "filePath": "cli.main.runtime.ts",
302
+ "line": 67,
303
+ "character": 3
304
+ },
305
+ "name": "CommandList"
306
+ }
306
307
  },
307
- "doc": {
308
- "__schema": "DocSchema",
308
+ {
309
+ "__schema": "FunctionLikeSchema",
309
310
  "location": {
310
311
  "filePath": "cli.main.runtime.ts",
311
- "line": 71,
312
+ "line": 74,
312
313
  "character": 3
313
314
  },
314
- "raw": "/**\n * get an instance of a registered command. (useful for aspects to modify and extend existing commands)\n */",
315
- "comment": "get an instance of a registered command. (useful for aspects to modify and extend existing commands)"
316
- },
317
- "signature": "(method) CLIMain.getCommand(name: string): Command | undefined",
318
- "name": "getCommand",
319
- "params": [
320
- {
321
- "__schema": "ParameterSchema",
315
+ "doc": {
316
+ "__schema": "DocSchema",
322
317
  "location": {
323
318
  "filePath": "cli.main.runtime.ts",
324
- "line": 74,
325
- "character": 14
319
+ "line": 71,
320
+ "character": 3
326
321
  },
327
- "name": "name",
328
- "type": {
329
- "__schema": "KeywordTypeSchema",
322
+ "raw": "/**\n * get an instance of a registered command. (useful for aspects to modify and extend existing commands)\n */",
323
+ "comment": "get an instance of a registered command. (useful for aspects to modify and extend existing commands)"
324
+ },
325
+ "signature": "(method) CLIMain.getCommand(name: string): Command | undefined",
326
+ "name": "getCommand",
327
+ "params": [
328
+ {
329
+ "__schema": "ParameterSchema",
330
330
  "location": {
331
331
  "filePath": "cli.main.runtime.ts",
332
332
  "line": 74,
333
- "character": 20
333
+ "character": 14
334
334
  },
335
- "name": "string"
335
+ "name": "name",
336
+ "type": {
337
+ "__schema": "KeywordTypeSchema",
338
+ "location": {
339
+ "filePath": "cli.main.runtime.ts",
340
+ "line": 74,
341
+ "character": 20
342
+ },
343
+ "name": "string"
344
+ },
345
+ "isOptional": false,
346
+ "isSpread": false
347
+ }
348
+ ],
349
+ "returnType": {
350
+ "__schema": "TypeUnionSchema",
351
+ "location": {
352
+ "filePath": "cli.main.runtime.ts",
353
+ "line": 74,
354
+ "character": 29
336
355
  },
337
- "isOptional": false,
338
- "isSpread": false
339
- }
340
- ],
341
- "returnType": {
342
- "__schema": "TypeUnionSchema",
356
+ "types": [
357
+ {
358
+ "__schema": "TypeRefSchema",
359
+ "location": {
360
+ "filePath": "cli.main.runtime.ts",
361
+ "line": 74,
362
+ "character": 29
363
+ },
364
+ "name": "Command",
365
+ "packageName": "@teambit/legacy/dist/cli/command"
366
+ },
367
+ {
368
+ "__schema": "KeywordTypeSchema",
369
+ "location": {
370
+ "filePath": "cli.main.runtime.ts",
371
+ "line": 74,
372
+ "character": 39
373
+ },
374
+ "name": "undefined"
375
+ }
376
+ ]
377
+ },
378
+ "modifiers": []
379
+ },
380
+ {
381
+ "__schema": "FunctionLikeSchema",
343
382
  "location": {
344
383
  "filePath": "cli.main.runtime.ts",
345
- "line": 74,
346
- "character": 29
384
+ "line": 84,
385
+ "character": 3
386
+ },
387
+ "doc": {
388
+ "__schema": "DocSchema",
389
+ "location": {
390
+ "filePath": "cli.main.runtime.ts",
391
+ "line": 78,
392
+ "character": 3
393
+ },
394
+ "raw": "/**\n * when running `bit help`, commands are grouped by categories.\n * this method helps registering a new group by providing its name and a description.\n * the name is what needs to be assigned to the `group` property of the Command interface.\n * the description is what shown in the `bit help` output.\n */",
395
+ "comment": "when running `bit help`, commands are grouped by categories.\nthis method helps registering a new group by providing its name and a description.\nthe name is what needs to be assigned to the `group` property of the Command interface.\nthe description is what shown in the `bit help` output."
347
396
  },
348
- "types": [
397
+ "signature": "(method) CLIMain.registerGroup(name: string, description: string): void",
398
+ "name": "registerGroup",
399
+ "params": [
349
400
  {
350
- "__schema": "TypeRefSchema",
401
+ "__schema": "ParameterSchema",
351
402
  "location": {
352
403
  "filePath": "cli.main.runtime.ts",
353
- "line": 74,
354
- "character": 29
404
+ "line": 84,
405
+ "character": 17
355
406
  },
356
- "name": "Command",
357
- "packageName": "@teambit/legacy/dist/cli/command"
407
+ "name": "name",
408
+ "type": {
409
+ "__schema": "KeywordTypeSchema",
410
+ "location": {
411
+ "filePath": "cli.main.runtime.ts",
412
+ "line": 84,
413
+ "character": 23
414
+ },
415
+ "name": "string"
416
+ },
417
+ "isOptional": false,
418
+ "isSpread": false
358
419
  },
359
420
  {
360
- "__schema": "KeywordTypeSchema",
421
+ "__schema": "ParameterSchema",
361
422
  "location": {
362
423
  "filePath": "cli.main.runtime.ts",
363
- "line": 74,
364
- "character": 39
424
+ "line": 84,
425
+ "character": 31
426
+ },
427
+ "name": "description",
428
+ "type": {
429
+ "__schema": "KeywordTypeSchema",
430
+ "location": {
431
+ "filePath": "cli.main.runtime.ts",
432
+ "line": 84,
433
+ "character": 44
434
+ },
435
+ "name": "string"
365
436
  },
366
- "name": "undefined"
437
+ "isOptional": false,
438
+ "isSpread": false
367
439
  }
368
- ]
369
- },
370
- "modifiers": []
371
- },
372
- {
373
- "__schema": "FunctionLikeSchema",
374
- "location": {
375
- "filePath": "cli.main.runtime.ts",
376
- "line": 84,
377
- "character": 3
440
+ ],
441
+ "returnType": {
442
+ "__schema": "InferenceTypeSchema",
443
+ "location": {
444
+ "filePath": "cli.main.runtime.ts",
445
+ "line": 84,
446
+ "character": 3
447
+ },
448
+ "type": "void"
449
+ },
450
+ "modifiers": []
378
451
  },
379
- "doc": {
380
- "__schema": "DocSchema",
452
+ {
453
+ "__schema": "FunctionLikeSchema",
381
454
  "location": {
382
455
  "filePath": "cli.main.runtime.ts",
383
- "line": 78,
456
+ "line": 95,
384
457
  "character": 3
385
458
  },
386
- "raw": "/**\n * when running `bit help`, commands are grouped by categories.\n * this method helps registering a new group by providing its name and a description.\n * the name is what needs to be assigned to the `group` property of the Command interface.\n * the description is what shown in the `bit help` output.\n */",
387
- "comment": "when running `bit help`, commands are grouped by categories.\nthis method helps registering a new group by providing its name and a description.\nthe name is what needs to be assigned to the `group` property of the Command interface.\nthe description is what shown in the `bit help` output."
388
- },
389
- "signature": "(method) CLIMain.registerGroup(name: string, description: string): void",
390
- "name": "registerGroup",
391
- "params": [
392
- {
393
- "__schema": "ParameterSchema",
459
+ "doc": {
460
+ "__schema": "DocSchema",
394
461
  "location": {
395
462
  "filePath": "cli.main.runtime.ts",
396
- "line": 84,
397
- "character": 17
463
+ "line": 92,
464
+ "character": 3
398
465
  },
399
- "name": "name",
400
- "type": {
401
- "__schema": "KeywordTypeSchema",
466
+ "raw": "/**\n * onStart is when bootstrapping the CLI. (it happens before onCommandStart)\n */",
467
+ "comment": "onStart is when bootstrapping the CLI. (it happens before onCommandStart)"
468
+ },
469
+ "signature": "(method) CLIMain.registerOnStart(onStartFn: OnStart): this",
470
+ "name": "registerOnStart",
471
+ "params": [
472
+ {
473
+ "__schema": "ParameterSchema",
402
474
  "location": {
403
475
  "filePath": "cli.main.runtime.ts",
404
- "line": 84,
405
- "character": 23
406
- },
407
- "name": "string"
408
- },
409
- "isOptional": false,
410
- "isSpread": false
411
- },
412
- {
413
- "__schema": "ParameterSchema",
476
+ "line": 95,
477
+ "character": 19
478
+ },
479
+ "name": "onStartFn",
480
+ "type": {
481
+ "__schema": "TypeRefSchema",
482
+ "location": {
483
+ "filePath": "cli.main.runtime.ts",
484
+ "line": 95,
485
+ "character": 30
486
+ },
487
+ "name": "OnStart",
488
+ "internalFilePath": "cli.main.runtime.ts"
489
+ },
490
+ "isOptional": false,
491
+ "isSpread": false
492
+ }
493
+ ],
494
+ "returnType": {
495
+ "__schema": "TypeRefSchema",
414
496
  "location": {
415
497
  "filePath": "cli.main.runtime.ts",
416
- "line": 84,
417
- "character": 31
418
- },
419
- "name": "description",
420
- "type": {
421
- "__schema": "KeywordTypeSchema",
422
- "location": {
423
- "filePath": "cli.main.runtime.ts",
424
- "line": 84,
425
- "character": 44
426
- },
427
- "name": "string"
498
+ "line": 95,
499
+ "character": 3
428
500
  },
429
- "isOptional": false,
430
- "isSpread": false
431
- }
432
- ],
433
- "returnType": {
434
- "__schema": "InferenceTypeSchema",
435
- "location": {
436
- "filePath": "cli.main.runtime.ts",
437
- "line": 84,
438
- "character": 3
501
+ "name": "CLIMain"
439
502
  },
440
- "type": "void"
441
- },
442
- "modifiers": []
443
- },
444
- {
445
- "__schema": "FunctionLikeSchema",
446
- "location": {
447
- "filePath": "cli.main.runtime.ts",
448
- "line": 95,
449
- "character": 3
503
+ "modifiers": []
450
504
  },
451
- "doc": {
452
- "__schema": "DocSchema",
505
+ {
506
+ "__schema": "FunctionLikeSchema",
453
507
  "location": {
454
508
  "filePath": "cli.main.runtime.ts",
455
- "line": 92,
509
+ "line": 104,
456
510
  "character": 3
457
511
  },
458
- "raw": "/**\n * onStart is when bootstrapping the CLI. (it happens before onCommandStart)\n */",
459
- "comment": "onStart is when bootstrapping the CLI. (it happens before onCommandStart)"
460
- },
461
- "signature": "(method) CLIMain.registerOnStart(onStartFn: OnStart): this",
462
- "name": "registerOnStart",
463
- "params": [
464
- {
465
- "__schema": "ParameterSchema",
512
+ "doc": {
513
+ "__schema": "DocSchema",
466
514
  "location": {
467
515
  "filePath": "cli.main.runtime.ts",
468
- "line": 95,
469
- "character": 19
516
+ "line": 100,
517
+ "character": 3
470
518
  },
471
- "name": "onStartFn",
472
- "type": {
473
- "__schema": "TypeRefSchema",
519
+ "raw": "/**\n * onCommandStart is when a command is about to start and we have the command object and the parsed args and flags\n * already. (it happens after onStart)\n */",
520
+ "comment": "onCommandStart is when a command is about to start and we have the command object and the parsed args and flags\nalready. (it happens after onStart)"
521
+ },
522
+ "signature": "(method) CLIMain.registerOnCommandStart(onCommandStartFn: OnCommandStart): this",
523
+ "name": "registerOnCommandStart",
524
+ "params": [
525
+ {
526
+ "__schema": "ParameterSchema",
474
527
  "location": {
475
528
  "filePath": "cli.main.runtime.ts",
476
- "line": 95,
477
- "character": 30
529
+ "line": 104,
530
+ "character": 26
478
531
  },
479
- "name": "OnStart",
480
- "internalFilePath": "cli.main.runtime.ts"
532
+ "name": "onCommandStartFn",
533
+ "type": {
534
+ "__schema": "TypeRefSchema",
535
+ "location": {
536
+ "filePath": "cli.main.runtime.ts",
537
+ "line": 104,
538
+ "character": 44
539
+ },
540
+ "name": "OnCommandStart",
541
+ "internalFilePath": "cli.main.runtime.ts"
542
+ },
543
+ "isOptional": false,
544
+ "isSpread": false
545
+ }
546
+ ],
547
+ "returnType": {
548
+ "__schema": "TypeRefSchema",
549
+ "location": {
550
+ "filePath": "cli.main.runtime.ts",
551
+ "line": 104,
552
+ "character": 3
481
553
  },
482
- "isOptional": false,
483
- "isSpread": false
484
- }
485
- ],
486
- "returnType": {
487
- "__schema": "TypeRefSchema",
488
- "location": {
489
- "filePath": "cli.main.runtime.ts",
490
- "line": 95,
491
- "character": 3
554
+ "name": "CLIMain"
492
555
  },
493
- "name": "CLIMain"
494
- },
495
- "modifiers": []
496
- },
497
- {
498
- "__schema": "FunctionLikeSchema",
499
- "location": {
500
- "filePath": "cli.main.runtime.ts",
501
- "line": 104,
502
- "character": 3
556
+ "modifiers": []
503
557
  },
504
- "doc": {
505
- "__schema": "DocSchema",
558
+ {
559
+ "__schema": "FunctionLikeSchema",
506
560
  "location": {
507
561
  "filePath": "cli.main.runtime.ts",
508
- "line": 100,
562
+ "line": 124,
509
563
  "character": 3
510
564
  },
511
- "raw": "/**\n * onCommandStart is when a command is about to start and we have the command object and the parsed args and flags\n * already. (it happens after onStart)\n */",
512
- "comment": "onCommandStart is when a command is about to start and we have the command object and the parsed args and flags\nalready. (it happens after onStart)"
513
- },
514
- "signature": "(method) CLIMain.registerOnCommandStart(onCommandStartFn: OnCommandStart): this",
515
- "name": "registerOnCommandStart",
516
- "params": [
517
- {
518
- "__schema": "ParameterSchema",
565
+ "doc": {
566
+ "__schema": "DocSchema",
519
567
  "location": {
520
568
  "filePath": "cli.main.runtime.ts",
521
- "line": 104,
522
- "character": 26
569
+ "line": 109,
570
+ "character": 3
523
571
  },
524
- "name": "onCommandStartFn",
525
- "type": {
526
- "__schema": "TypeRefSchema",
572
+ "raw": "/**\n * This will register a function to be called before the process exits.\n * This will run only for \"regular\" exits\n * e.g.\n * yes - command run and finished successfully\n * yes - command run and failed gracefully (code 1)\n * not SIGKILL (kill -9)\n * not SIGINT (Ctrl+C)\n * not SIGTERM (kill)\n * not uncaughtException\n * not unhandledRejection\n *\n * @param onBeforeExitFn\n * @returns\n */",
573
+ "comment": "This will register a function to be called before the process exits.\nThis will run only for \"regular\" exits\ne.g.\nyes - command run and finished successfully\nyes - command run and failed gracefully (code 1)\nnot SIGKILL (kill -9)\nnot SIGINT (Ctrl+C)\nnot SIGTERM (kill)\nnot uncaughtException\nnot unhandledRejection",
574
+ "tags": [
575
+ {
576
+ "__schema": "PropertyLikeTagSchema",
577
+ "location": {
578
+ "filePath": "cli.main.runtime.ts",
579
+ "line": 121,
580
+ "character": 6
581
+ },
582
+ "name": "onBeforeExitFn",
583
+ "tagName": "parameter"
584
+ },
585
+ {
586
+ "__schema": "ReturnTagSchema",
587
+ "location": {
588
+ "filePath": "cli.main.runtime.ts",
589
+ "line": 122,
590
+ "character": 6
591
+ },
592
+ "tagName": "return"
593
+ }
594
+ ]
595
+ },
596
+ "signature": "(method) CLIMain.registerOnBeforeExit(onBeforeExitFn: OnBeforeExitFn): this",
597
+ "name": "registerOnBeforeExit",
598
+ "params": [
599
+ {
600
+ "__schema": "ParameterSchema",
527
601
  "location": {
528
602
  "filePath": "cli.main.runtime.ts",
529
- "line": 104,
530
- "character": 44
603
+ "line": 124,
604
+ "character": 24
605
+ },
606
+ "name": "onBeforeExitFn",
607
+ "type": {
608
+ "__schema": "TypeRefSchema",
609
+ "location": {
610
+ "filePath": "cli.main.runtime.ts",
611
+ "line": 124,
612
+ "character": 40
613
+ },
614
+ "name": "OnBeforeExitFn",
615
+ "internalFilePath": "cli.main.runtime.ts"
531
616
  },
532
- "name": "OnCommandStart",
533
- "internalFilePath": "cli.main.runtime.ts"
617
+ "isOptional": false,
618
+ "isSpread": false
619
+ }
620
+ ],
621
+ "returnType": {
622
+ "__schema": "TypeRefSchema",
623
+ "location": {
624
+ "filePath": "cli.main.runtime.ts",
625
+ "line": 124,
626
+ "character": 3
534
627
  },
535
- "isOptional": false,
536
- "isSpread": false
537
- }
538
- ],
539
- "returnType": {
540
- "__schema": "TypeRefSchema",
541
- "location": {
542
- "filePath": "cli.main.runtime.ts",
543
- "line": 104,
544
- "character": 3
628
+ "name": "CLIMain"
545
629
  },
546
- "name": "CLIMain"
547
- },
548
- "modifiers": []
549
- },
550
- {
551
- "__schema": "FunctionLikeSchema",
552
- "location": {
553
- "filePath": "cli.main.runtime.ts",
554
- "line": 124,
555
- "character": 3
630
+ "modifiers": []
556
631
  },
557
- "doc": {
558
- "__schema": "DocSchema",
632
+ {
633
+ "__schema": "FunctionLikeSchema",
559
634
  "location": {
560
635
  "filePath": "cli.main.runtime.ts",
561
- "line": 109,
636
+ "line": 133,
562
637
  "character": 3
563
638
  },
564
- "raw": "/**\n * This will register a function to be called before the process exits.\n * This will run only for \"regular\" exits\n * e.g.\n * yes - command run and finished successfully\n * yes - command run and failed gracefully (code 1)\n * not SIGKILL (kill -9)\n * not SIGINT (Ctrl+C)\n * not SIGTERM (kill)\n * not uncaughtException\n * not unhandledRejection\n *\n * @param onBeforeExitFn\n * @returns\n */",
565
- "comment": "This will register a function to be called before the process exits.\nThis will run only for \"regular\" exits\ne.g.\nyes - command run and finished successfully\nyes - command run and failed gracefully (code 1)\nnot SIGKILL (kill -9)\nnot SIGINT (Ctrl+C)\nnot SIGTERM (kill)\nnot uncaughtException\nnot unhandledRejection",
566
- "tags": [
567
- {
568
- "__schema": "PropertyLikeTagSchema",
569
- "location": {
570
- "filePath": "cli.main.runtime.ts",
571
- "line": 121,
572
- "character": 6
573
- },
574
- "name": "onBeforeExitFn",
575
- "tagName": "parameter"
639
+ "doc": {
640
+ "__schema": "DocSchema",
641
+ "location": {
642
+ "filePath": "cli.main.runtime.ts",
643
+ "line": 130,
644
+ "character": 3
576
645
  },
646
+ "raw": "/**\n * execute commands registered to this aspect.\n */",
647
+ "comment": "execute commands registered to this aspect."
648
+ },
649
+ "signature": "(method) CLIMain.run(hasWorkspace: boolean): Promise<void>",
650
+ "name": "run",
651
+ "params": [
577
652
  {
578
- "__schema": "ReturnTagSchema",
653
+ "__schema": "ParameterSchema",
579
654
  "location": {
580
655
  "filePath": "cli.main.runtime.ts",
581
- "line": 122,
582
- "character": 6
656
+ "line": 133,
657
+ "character": 13
658
+ },
659
+ "name": "hasWorkspace",
660
+ "type": {
661
+ "__schema": "KeywordTypeSchema",
662
+ "location": {
663
+ "filePath": "cli.main.runtime.ts",
664
+ "line": 133,
665
+ "character": 27
666
+ },
667
+ "name": "boolean"
583
668
  },
584
- "tagName": "return"
669
+ "isOptional": false,
670
+ "isSpread": false
585
671
  }
586
- ]
587
- },
588
- "signature": "(method) CLIMain.registerOnBeforeExit(onBeforeExitFn: OnBeforeExitFn): this",
589
- "name": "registerOnBeforeExit",
590
- "params": [
591
- {
592
- "__schema": "ParameterSchema",
672
+ ],
673
+ "returnType": {
674
+ "__schema": "InferenceTypeSchema",
593
675
  "location": {
594
676
  "filePath": "cli.main.runtime.ts",
595
- "line": 124,
596
- "character": 24
597
- },
598
- "name": "onBeforeExitFn",
599
- "type": {
600
- "__schema": "TypeRefSchema",
601
- "location": {
602
- "filePath": "cli.main.runtime.ts",
603
- "line": 124,
604
- "character": 40
605
- },
606
- "name": "OnBeforeExitFn",
607
- "internalFilePath": "cli.main.runtime.ts"
677
+ "line": 133,
678
+ "character": 3
608
679
  },
609
- "isOptional": false,
610
- "isSpread": false
611
- }
612
- ],
613
- "returnType": {
614
- "__schema": "TypeRefSchema",
680
+ "type": "Promise<void>"
681
+ },
682
+ "modifiers": [
683
+ "async"
684
+ ]
685
+ },
686
+ {
687
+ "__schema": "VariableLikeSchema",
615
688
  "location": {
616
689
  "filePath": "cli.main.runtime.ts",
617
- "line": 124,
690
+ "line": 166,
618
691
  "character": 3
619
692
  },
620
- "name": "CLIMain"
621
- },
622
- "modifiers": []
623
- },
624
- {
625
- "__schema": "FunctionLikeSchema",
626
- "location": {
627
- "filePath": "cli.main.runtime.ts",
628
- "line": 133,
629
- "character": 3
693
+ "signature": "(property) CLIMain.dependencies: Aspect[]",
694
+ "name": "dependencies",
695
+ "type": {
696
+ "__schema": "InferenceTypeSchema",
697
+ "location": {
698
+ "filePath": "cli.main.runtime.ts",
699
+ "line": 166,
700
+ "character": 3
701
+ },
702
+ "type": "Aspect[]"
703
+ },
704
+ "isOptional": true,
705
+ "defaultValue": "[LoggerAspect]"
630
706
  },
631
- "doc": {
632
- "__schema": "DocSchema",
707
+ {
708
+ "__schema": "VariableLikeSchema",
633
709
  "location": {
634
710
  "filePath": "cli.main.runtime.ts",
635
- "line": 130,
711
+ "line": 167,
636
712
  "character": 3
637
713
  },
638
- "raw": "/**\n * execute commands registered to this aspect.\n */",
639
- "comment": "execute commands registered to this aspect."
640
- },
641
- "signature": "(method) CLIMain.run(hasWorkspace: boolean): Promise<void>",
642
- "name": "run",
643
- "params": [
644
- {
645
- "__schema": "ParameterSchema",
714
+ "signature": "(property) CLIMain.runtime: RuntimeDefinition",
715
+ "name": "runtime",
716
+ "type": {
717
+ "__schema": "InferenceTypeSchema",
646
718
  "location": {
647
719
  "filePath": "cli.main.runtime.ts",
648
- "line": 133,
649
- "character": 13
650
- },
651
- "name": "hasWorkspace",
652
- "type": {
653
- "__schema": "KeywordTypeSchema",
654
- "location": {
655
- "filePath": "cli.main.runtime.ts",
656
- "line": 133,
657
- "character": 27
658
- },
659
- "name": "boolean"
720
+ "line": 167,
721
+ "character": 3
660
722
  },
661
- "isOptional": false,
662
- "isSpread": false
663
- }
664
- ],
665
- "returnType": {
666
- "__schema": "InferenceTypeSchema",
667
- "location": {
668
- "filePath": "cli.main.runtime.ts",
669
- "line": 133,
670
- "character": 3
723
+ "type": "RuntimeDefinition"
671
724
  },
672
- "type": "Promise<void>"
673
- },
674
- "modifiers": [
675
- "async"
676
- ]
677
- },
678
- {
679
- "__schema": "VariableLikeSchema",
680
- "location": {
681
- "filePath": "cli.main.runtime.ts",
682
- "line": 162,
683
- "character": 3
725
+ "isOptional": true,
726
+ "defaultValue": "MainRuntime"
684
727
  },
685
- "signature": "(property) CLIMain.dependencies: Aspect[]",
686
- "name": "dependencies",
687
- "type": {
688
- "__schema": "InferenceTypeSchema",
728
+ {
729
+ "__schema": "VariableLikeSchema",
689
730
  "location": {
690
731
  "filePath": "cli.main.runtime.ts",
691
- "line": 162,
732
+ "line": 168,
692
733
  "character": 3
693
734
  },
694
- "type": "Aspect[]"
695
- },
696
- "isOptional": true,
697
- "defaultValue": "[LoggerAspect]"
698
- },
699
- {
700
- "__schema": "VariableLikeSchema",
701
- "location": {
702
- "filePath": "cli.main.runtime.ts",
703
- "line": 163,
704
- "character": 3
705
- },
706
- "signature": "(property) CLIMain.runtime: RuntimeDefinition",
707
- "name": "runtime",
708
- "type": {
709
- "__schema": "InferenceTypeSchema",
710
- "location": {
711
- "filePath": "cli.main.runtime.ts",
712
- "line": 163,
713
- "character": 3
735
+ "signature": "(property) CLIMain.slots: (((registerFn: () => string) => SlotRegistry<CommandList>) | ((registerFn: () => string) => SlotRegistry<OnStart>) | ((registerFn: () => string) => SlotRegistry<...>))[]",
736
+ "name": "slots",
737
+ "type": {
738
+ "__schema": "InferenceTypeSchema",
739
+ "location": {
740
+ "filePath": "cli.main.runtime.ts",
741
+ "line": 168,
742
+ "character": 3
743
+ },
744
+ "type": "(((registerFn: () => string) => SlotRegistry<CommandList>) | ((registerFn: () => string) => SlotRegistry<OnStart>) | ((registerFn: () => string) => SlotRegistry<...>))[]"
714
745
  },
715
- "type": "RuntimeDefinition"
716
- },
717
- "isOptional": true,
718
- "defaultValue": "MainRuntime"
719
- },
720
- {
721
- "__schema": "VariableLikeSchema",
722
- "location": {
723
- "filePath": "cli.main.runtime.ts",
724
- "line": 164,
725
- "character": 3
746
+ "isOptional": true,
747
+ "defaultValue": "[\n Slot.withType<CommandList>(),\n Slot.withType<OnStart>(),\n Slot.withType<OnCommandStart>(),\n Slot.withType<OnBeforeExitFn>(),\n ]"
726
748
  },
727
- "signature": "(property) CLIMain.slots: (((registerFn: () => string) => SlotRegistry<CommandList>) | ((registerFn: () => string) => SlotRegistry<OnStart>) | ((registerFn: () => string) => SlotRegistry<...>))[]",
728
- "name": "slots",
729
- "type": {
730
- "__schema": "InferenceTypeSchema",
749
+ {
750
+ "__schema": "FunctionLikeSchema",
731
751
  "location": {
732
752
  "filePath": "cli.main.runtime.ts",
733
- "line": 164,
753
+ "line": 175,
734
754
  "character": 3
735
755
  },
736
- "type": "(((registerFn: () => string) => SlotRegistry<CommandList>) | ((registerFn: () => string) => SlotRegistry<OnStart>) | ((registerFn: () => string) => SlotRegistry<...>))[]"
737
- },
738
- "isOptional": true,
739
- "defaultValue": "[\n Slot.withType<CommandList>(),\n Slot.withType<OnStart>(),\n Slot.withType<OnCommandStart>(),\n Slot.withType<OnBeforeExitFn>(),\n ]"
740
- },
741
- {
742
- "__schema": "FunctionLikeSchema",
743
- "location": {
744
- "filePath": "cli.main.runtime.ts",
745
- "line": 171,
746
- "character": 3
747
- },
748
- "signature": "(method) CLIMain.provider([loggerMain]: [LoggerMain], config: any, [commandsSlot, onStartSlot, onCommandStartSlot, onBeforeExitSlot]: [\n CommandsSlot,\n OnStartSlot,\n OnCommandStartSlot,\n OnBeforeExitSlot\n]): Promise<CLIMain>",
749
- "name": "provider",
750
- "params": [
751
- {
752
- "__schema": "ParameterSchema",
753
- "location": {
754
- "filePath": "cli.main.runtime.ts",
755
- "line": 172,
756
- "character": 5
757
- },
758
- "name": "[ loggerMain ]",
759
- "type": {
760
- "__schema": "TupleTypeSchema",
756
+ "signature": "(method) CLIMain.provider([loggerMain]: [LoggerMain], config: any, [commandsSlot, onStartSlot, onCommandStartSlot, onBeforeExitSlot]: [\n CommandsSlot,\n OnStartSlot,\n OnCommandStartSlot,\n OnBeforeExitSlot\n]): Promise<CLIMain>",
757
+ "name": "provider",
758
+ "params": [
759
+ {
760
+ "__schema": "ParameterSchema",
761
761
  "location": {
762
762
  "filePath": "cli.main.runtime.ts",
763
- "line": 172,
764
- "character": 19
763
+ "line": 176,
764
+ "character": 5
765
765
  },
766
- "elements": [
767
- {
768
- "__schema": "TypeRefSchema",
769
- "location": {
770
- "filePath": "cli.main.runtime.ts",
771
- "line": 172,
772
- "character": 20
773
- },
774
- "name": "LoggerMain",
775
- "componentId": {
776
- "scope": "teambit.harmony",
777
- "name": "logger"
766
+ "name": "[ loggerMain ]",
767
+ "type": {
768
+ "__schema": "TupleTypeSchema",
769
+ "location": {
770
+ "filePath": "cli.main.runtime.ts",
771
+ "line": 176,
772
+ "character": 19
773
+ },
774
+ "elements": [
775
+ {
776
+ "__schema": "TypeRefSchema",
777
+ "location": {
778
+ "filePath": "cli.main.runtime.ts",
779
+ "line": 176,
780
+ "character": 20
781
+ },
782
+ "name": "LoggerMain",
783
+ "componentId": {
784
+ "scope": "teambit.harmony",
785
+ "name": "logger"
786
+ }
778
787
  }
779
- }
780
- ]
781
- },
782
- "isOptional": false,
783
- "isSpread": false
784
- },
785
- {
786
- "__schema": "ParameterSchema",
787
- "location": {
788
- "filePath": "cli.main.runtime.ts",
789
- "line": 173,
790
- "character": 5
788
+ ]
789
+ },
790
+ "isOptional": false,
791
+ "isSpread": false
791
792
  },
792
- "name": "config",
793
- "type": {
794
- "__schema": "InferenceTypeSchema",
793
+ {
794
+ "__schema": "ParameterSchema",
795
795
  "location": {
796
796
  "filePath": "cli.main.runtime.ts",
797
- "line": 173,
797
+ "line": 177,
798
798
  "character": 5
799
799
  },
800
- "type": "any"
801
- },
802
- "isOptional": false,
803
- "isSpread": false
804
- },
805
- {
806
- "__schema": "ParameterSchema",
807
- "location": {
808
- "filePath": "cli.main.runtime.ts",
809
- "line": 174,
810
- "character": 5
800
+ "name": "config",
801
+ "type": {
802
+ "__schema": "InferenceTypeSchema",
803
+ "location": {
804
+ "filePath": "cli.main.runtime.ts",
805
+ "line": 177,
806
+ "character": 5
807
+ },
808
+ "type": "any"
809
+ },
810
+ "isOptional": false,
811
+ "isSpread": false
811
812
  },
812
- "name": "[ commandsSlot, onStartSlot, onCommandStartSlot, onBeforeExitSlot ]",
813
- "type": {
814
- "__schema": "TupleTypeSchema",
813
+ {
814
+ "__schema": "ParameterSchema",
815
815
  "location": {
816
816
  "filePath": "cli.main.runtime.ts",
817
- "line": 174,
818
- "character": 72
819
- },
820
- "elements": [
821
- {
822
- "__schema": "TypeRefSchema",
823
- "location": {
824
- "filePath": "cli.main.runtime.ts",
825
- "line": 175,
826
- "character": 7
827
- },
828
- "name": "CommandsSlot"
817
+ "line": 178,
818
+ "character": 5
819
+ },
820
+ "name": "[ commandsSlot, onStartSlot, onCommandStartSlot, onBeforeExitSlot ]",
821
+ "type": {
822
+ "__schema": "TupleTypeSchema",
823
+ "location": {
824
+ "filePath": "cli.main.runtime.ts",
825
+ "line": 178,
826
+ "character": 72
829
827
  },
830
- {
831
- "__schema": "TypeRefSchema",
832
- "location": {
833
- "filePath": "cli.main.runtime.ts",
834
- "line": 176,
835
- "character": 7
828
+ "elements": [
829
+ {
830
+ "__schema": "TypeRefSchema",
831
+ "location": {
832
+ "filePath": "cli.main.runtime.ts",
833
+ "line": 179,
834
+ "character": 7
835
+ },
836
+ "name": "CommandsSlot"
836
837
  },
837
- "name": "OnStartSlot",
838
- "internalFilePath": "cli.main.runtime.ts"
839
- },
840
- {
841
- "__schema": "TypeRefSchema",
842
- "location": {
843
- "filePath": "cli.main.runtime.ts",
844
- "line": 177,
845
- "character": 7
838
+ {
839
+ "__schema": "TypeRefSchema",
840
+ "location": {
841
+ "filePath": "cli.main.runtime.ts",
842
+ "line": 180,
843
+ "character": 7
844
+ },
845
+ "name": "OnStartSlot",
846
+ "internalFilePath": "cli.main.runtime.ts"
846
847
  },
847
- "name": "OnCommandStartSlot",
848
- "internalFilePath": "cli.main.runtime.ts"
849
- },
850
- {
851
- "__schema": "TypeRefSchema",
852
- "location": {
853
- "filePath": "cli.main.runtime.ts",
854
- "line": 178,
855
- "character": 7
848
+ {
849
+ "__schema": "TypeRefSchema",
850
+ "location": {
851
+ "filePath": "cli.main.runtime.ts",
852
+ "line": 181,
853
+ "character": 7
854
+ },
855
+ "name": "OnCommandStartSlot",
856
+ "internalFilePath": "cli.main.runtime.ts"
856
857
  },
857
- "name": "OnBeforeExitSlot",
858
- "internalFilePath": "cli.main.runtime.ts"
859
- }
860
- ]
858
+ {
859
+ "__schema": "TypeRefSchema",
860
+ "location": {
861
+ "filePath": "cli.main.runtime.ts",
862
+ "line": 182,
863
+ "character": 7
864
+ },
865
+ "name": "OnBeforeExitSlot",
866
+ "internalFilePath": "cli.main.runtime.ts"
867
+ }
868
+ ]
869
+ },
870
+ "isOptional": false,
871
+ "isSpread": false
872
+ }
873
+ ],
874
+ "returnType": {
875
+ "__schema": "InferenceTypeSchema",
876
+ "location": {
877
+ "filePath": "cli.main.runtime.ts",
878
+ "line": 175,
879
+ "character": 3
861
880
  },
862
- "isOptional": false,
863
- "isSpread": false
864
- }
865
- ],
866
- "returnType": {
867
- "__schema": "InferenceTypeSchema",
868
- "location": {
869
- "filePath": "cli.main.runtime.ts",
870
- "line": 171,
871
- "character": 3
881
+ "type": "Promise<CLIMain>"
872
882
  },
873
- "type": "Promise<CLIMain>"
874
- },
875
- "modifiers": [
876
- "static",
877
- "async"
878
- ]
879
- }
880
- ],
881
- "extendsNodes": [],
882
- "implementNodes": []
883
+ "modifiers": [
884
+ "static",
885
+ "async"
886
+ ]
887
+ }
888
+ ],
889
+ "extendsNodes": [],
890
+ "implementNodes": []
891
+ }
883
892
  },
884
893
  {
885
- "__schema": "TypeSchema",
894
+ "__schema": "ExportSchema",
886
895
  "location": {
887
- "filePath": "cli.main.runtime.ts",
888
- "line": 19,
889
- "character": 1
896
+ "filePath": "index.ts",
897
+ "line": 3,
898
+ "character": 24
890
899
  },
891
- "signature": "type CommandList = Command[]",
892
900
  "name": "CommandList",
893
- "type": {
894
- "__schema": "TypeRefSchema",
901
+ "exportNode": {
902
+ "__schema": "TypeSchema",
895
903
  "location": {
896
904
  "filePath": "cli.main.runtime.ts",
897
905
  "line": 19,
898
- "character": 27
906
+ "character": 1
899
907
  },
900
- "name": "Array",
901
- "typeArgs": [
902
- {
903
- "__schema": "TypeRefSchema",
904
- "location": {
905
- "filePath": "cli.main.runtime.ts",
906
- "line": 19,
907
- "character": 33
908
- },
909
- "name": "Command",
910
- "packageName": "@teambit/legacy/dist/cli/command"
911
- }
912
- ]
908
+ "signature": "type CommandList = Command[]",
909
+ "name": "CommandList",
910
+ "type": {
911
+ "__schema": "TypeRefSchema",
912
+ "location": {
913
+ "filePath": "cli.main.runtime.ts",
914
+ "line": 19,
915
+ "character": 27
916
+ },
917
+ "name": "Array",
918
+ "typeArgs": [
919
+ {
920
+ "__schema": "TypeRefSchema",
921
+ "location": {
922
+ "filePath": "cli.main.runtime.ts",
923
+ "line": 19,
924
+ "character": 33
925
+ },
926
+ "name": "Command",
927
+ "packageName": "@teambit/legacy/dist/cli/command"
928
+ }
929
+ ]
930
+ }
913
931
  }
914
932
  },
915
933
  {
916
- "__schema": "TypeSchema",
934
+ "__schema": "ExportSchema",
917
935
  "location": {
918
- "filePath": "cli.main.runtime.ts",
919
- "line": 26,
920
- "character": 1
936
+ "filePath": "index.ts",
937
+ "line": 3,
938
+ "character": 37
921
939
  },
922
- "signature": "type CommandsSlot = SlotRegistry<CommandList>",
923
940
  "name": "CommandsSlot",
924
- "type": {
925
- "__schema": "TypeRefSchema",
941
+ "exportNode": {
942
+ "__schema": "TypeSchema",
926
943
  "location": {
927
944
  "filePath": "cli.main.runtime.ts",
928
945
  "line": 26,
929
- "character": 28
930
- },
931
- "name": "SlotRegistry",
932
- "componentId": {
933
- "scope": "teambit.harmony",
934
- "name": "harmony",
935
- "version": "0.4.6"
946
+ "character": 1
936
947
  },
937
- "typeArgs": [
938
- {
939
- "__schema": "TypeRefSchema",
940
- "location": {
941
- "filePath": "cli.main.runtime.ts",
942
- "line": 26,
943
- "character": 41
944
- },
945
- "name": "CommandList"
946
- }
947
- ]
948
+ "signature": "type CommandsSlot = SlotRegistry<CommandList>",
949
+ "name": "CommandsSlot",
950
+ "type": {
951
+ "__schema": "TypeRefSchema",
952
+ "location": {
953
+ "filePath": "cli.main.runtime.ts",
954
+ "line": 26,
955
+ "character": 28
956
+ },
957
+ "name": "SlotRegistry",
958
+ "componentId": {
959
+ "scope": "teambit.harmony",
960
+ "name": "harmony",
961
+ "version": "0.4.6"
962
+ },
963
+ "typeArgs": [
964
+ {
965
+ "__schema": "TypeRefSchema",
966
+ "location": {
967
+ "filePath": "cli.main.runtime.ts",
968
+ "line": 26,
969
+ "character": 41
970
+ },
971
+ "name": "CommandList"
972
+ }
973
+ ]
974
+ }
948
975
  }
949
976
  },
950
977
  {
951
- "__schema": "TypeRefSchema",
978
+ "__schema": "ExportSchema",
952
979
  "location": {
953
980
  "filePath": "index.ts",
954
981
  "line": 4,
955
982
  "character": 15
956
983
  },
957
984
  "name": "Command",
958
- "packageName": "@teambit/legacy/dist/cli/command"
985
+ "exportNode": {
986
+ "__schema": "TypeRefSchema",
987
+ "location": {
988
+ "filePath": "index.ts",
989
+ "line": 4,
990
+ "character": 15
991
+ },
992
+ "name": "Command",
993
+ "packageName": "@teambit/legacy/dist/cli/command"
994
+ }
959
995
  },
960
996
  {
961
- "__schema": "TypeRefSchema",
997
+ "__schema": "ExportSchema",
962
998
  "location": {
963
999
  "filePath": "index.ts",
964
1000
  "line": 4,
965
1001
  "character": 24
966
1002
  },
967
1003
  "name": "CLIArgs",
968
- "packageName": "@teambit/legacy/dist/cli/command"
1004
+ "exportNode": {
1005
+ "__schema": "TypeRefSchema",
1006
+ "location": {
1007
+ "filePath": "index.ts",
1008
+ "line": 4,
1009
+ "character": 24
1010
+ },
1011
+ "name": "CLIArgs",
1012
+ "packageName": "@teambit/legacy/dist/cli/command"
1013
+ }
969
1014
  },
970
1015
  {
971
- "__schema": "TypeRefSchema",
1016
+ "__schema": "ExportSchema",
972
1017
  "location": {
973
1018
  "filePath": "index.ts",
974
1019
  "line": 4,
975
1020
  "character": 33
976
1021
  },
977
1022
  "name": "Flags",
978
- "packageName": "@teambit/legacy/dist/cli/command"
1023
+ "exportNode": {
1024
+ "__schema": "TypeRefSchema",
1025
+ "location": {
1026
+ "filePath": "index.ts",
1027
+ "line": 4,
1028
+ "character": 33
1029
+ },
1030
+ "name": "Flags",
1031
+ "packageName": "@teambit/legacy/dist/cli/command"
1032
+ }
979
1033
  },
980
1034
  {
981
- "__schema": "TypeRefSchema",
1035
+ "__schema": "ExportSchema",
982
1036
  "location": {
983
1037
  "filePath": "index.ts",
984
1038
  "line": 4,
985
1039
  "character": 40
986
1040
  },
987
1041
  "name": "GenericObject",
988
- "packageName": "@teambit/legacy/dist/cli/command"
1042
+ "exportNode": {
1043
+ "__schema": "TypeRefSchema",
1044
+ "location": {
1045
+ "filePath": "index.ts",
1046
+ "line": 4,
1047
+ "character": 40
1048
+ },
1049
+ "name": "GenericObject",
1050
+ "packageName": "@teambit/legacy/dist/cli/command"
1051
+ }
989
1052
  },
990
1053
  {
991
- "__schema": "TypeRefSchema",
1054
+ "__schema": "ExportSchema",
992
1055
  "location": {
993
1056
  "filePath": "index.ts",
994
1057
  "line": 5,
995
1058
  "character": 15
996
1059
  },
997
1060
  "name": "CommandOptions",
998
- "packageName": "@teambit/legacy/dist/cli/legacy-command"
1061
+ "exportNode": {
1062
+ "__schema": "TypeRefSchema",
1063
+ "location": {
1064
+ "filePath": "index.ts",
1065
+ "line": 5,
1066
+ "character": 15
1067
+ },
1068
+ "name": "CommandOptions",
1069
+ "packageName": "@teambit/legacy/dist/cli/legacy-command"
1070
+ }
999
1071
  },
1000
1072
  {
1001
- "__schema": "ClassSchema",
1073
+ "__schema": "ExportSchema",
1002
1074
  "location": {
1003
- "filePath": "exceptions/already-exists.ts",
1004
- "line": 3,
1005
- "character": 1
1075
+ "filePath": "exceptions/index.ts",
1076
+ "line": 1,
1077
+ "character": 10
1006
1078
  },
1007
- "signature": "class AlreadyExistsError",
1008
1079
  "name": "AlreadyExistsError",
1009
- "members": [
1010
- {
1011
- "__schema": "ConstructorSchema",
1012
- "location": {
1013
- "filePath": "exceptions/already-exists.ts",
1014
- "line": 4,
1015
- "character": 3
1016
- },
1017
- "signature": "constructor AlreadyExistsError(type: string, name: string): AlreadyExistsError",
1018
- "name": "constructor",
1019
- "params": [
1020
- {
1021
- "__schema": "ParameterSchema",
1022
- "location": {
1023
- "filePath": "exceptions/already-exists.ts",
1024
- "line": 4,
1025
- "character": 15
1026
- },
1027
- "name": "type",
1028
- "type": {
1029
- "__schema": "KeywordTypeSchema",
1080
+ "exportNode": {
1081
+ "__schema": "ClassSchema",
1082
+ "location": {
1083
+ "filePath": "exceptions/already-exists.ts",
1084
+ "line": 3,
1085
+ "character": 1
1086
+ },
1087
+ "signature": "class AlreadyExistsError",
1088
+ "name": "AlreadyExistsError",
1089
+ "members": [
1090
+ {
1091
+ "__schema": "ConstructorSchema",
1092
+ "location": {
1093
+ "filePath": "exceptions/already-exists.ts",
1094
+ "line": 4,
1095
+ "character": 3
1096
+ },
1097
+ "signature": "constructor AlreadyExistsError(type: string, name: string): AlreadyExistsError",
1098
+ "name": "constructor",
1099
+ "params": [
1100
+ {
1101
+ "__schema": "ParameterSchema",
1030
1102
  "location": {
1031
1103
  "filePath": "exceptions/already-exists.ts",
1032
1104
  "line": 4,
1033
- "character": 21
1105
+ "character": 15
1034
1106
  },
1035
- "name": "string"
1036
- },
1037
- "isOptional": false,
1038
- "isSpread": false
1039
- },
1040
- {
1041
- "__schema": "ParameterSchema",
1042
- "location": {
1043
- "filePath": "exceptions/already-exists.ts",
1044
- "line": 4,
1045
- "character": 29
1107
+ "name": "type",
1108
+ "type": {
1109
+ "__schema": "KeywordTypeSchema",
1110
+ "location": {
1111
+ "filePath": "exceptions/already-exists.ts",
1112
+ "line": 4,
1113
+ "character": 21
1114
+ },
1115
+ "name": "string"
1116
+ },
1117
+ "isOptional": false,
1118
+ "isSpread": false
1046
1119
  },
1047
- "name": "name",
1048
- "type": {
1049
- "__schema": "KeywordTypeSchema",
1120
+ {
1121
+ "__schema": "ParameterSchema",
1050
1122
  "location": {
1051
1123
  "filePath": "exceptions/already-exists.ts",
1052
1124
  "line": 4,
1053
- "character": 35
1125
+ "character": 29
1054
1126
  },
1055
- "name": "string"
1127
+ "name": "name",
1128
+ "type": {
1129
+ "__schema": "KeywordTypeSchema",
1130
+ "location": {
1131
+ "filePath": "exceptions/already-exists.ts",
1132
+ "line": 4,
1133
+ "character": 35
1134
+ },
1135
+ "name": "string"
1136
+ },
1137
+ "isOptional": false,
1138
+ "isSpread": false
1139
+ }
1140
+ ],
1141
+ "returnType": {
1142
+ "__schema": "ThisTypeSchema",
1143
+ "location": {
1144
+ "filePath": "exceptions/already-exists.ts",
1145
+ "line": 3,
1146
+ "character": 1
1056
1147
  },
1057
- "isOptional": false,
1058
- "isSpread": false
1059
- }
1060
- ],
1061
- "returnType": {
1062
- "__schema": "ThisTypeSchema",
1063
- "location": {
1064
- "filePath": "exceptions/already-exists.ts",
1065
- "line": 3,
1066
- "character": 1
1148
+ "name": "AlreadyExistsError"
1067
1149
  },
1068
- "name": "AlreadyExistsError"
1069
- },
1070
- "modifiers": []
1071
- }
1072
- ],
1073
- "extendsNodes": [
1074
- {
1075
- "__schema": "ExpressionWithTypeArgumentsSchema",
1076
- "location": {
1077
- "filePath": "exceptions/already-exists.ts",
1078
- "line": 3,
1079
- "character": 41
1080
- },
1081
- "name": "extends BitError",
1082
- "typeArgs": [],
1083
- "expression": {
1084
- "__schema": "TypeRefSchema",
1150
+ "modifiers": []
1151
+ }
1152
+ ],
1153
+ "extendsNodes": [
1154
+ {
1155
+ "__schema": "ExpressionWithTypeArgumentsSchema",
1085
1156
  "location": {
1086
1157
  "filePath": "exceptions/already-exists.ts",
1087
1158
  "line": 3,
1088
1159
  "character": 41
1089
1160
  },
1090
- "name": "BitError",
1091
- "componentId": {
1092
- "_legacy": {
1093
- "scope": "teambit.harmony",
1094
- "name": "cli",
1095
- "version": "0.0.862"
1161
+ "name": "extends BitError",
1162
+ "typeArgs": [],
1163
+ "expression": {
1164
+ "__schema": "TypeRefSchema",
1165
+ "location": {
1166
+ "filePath": "exceptions/already-exists.ts",
1167
+ "line": 3,
1168
+ "character": 41
1096
1169
  },
1097
- "_scope": "teambit.harmony"
1170
+ "name": "BitError",
1171
+ "componentId": {
1172
+ "_legacy": {
1173
+ "scope": "teambit.harmony",
1174
+ "name": "cli",
1175
+ "version": "0.0.864"
1176
+ },
1177
+ "_scope": "teambit.harmony"
1178
+ }
1098
1179
  }
1099
1180
  }
1100
- }
1101
- ],
1102
- "implementNodes": []
1181
+ ],
1182
+ "implementNodes": []
1183
+ }
1103
1184
  },
1104
1185
  {
1105
- "__schema": "VariableLikeSchema",
1186
+ "__schema": "ExportSchema",
1106
1187
  "location": {
1107
- "filePath": "cli.aspect.ts",
1108
- "line": 5,
1109
- "character": 14
1188
+ "filePath": "index.ts",
1189
+ "line": 8,
1190
+ "character": 23
1110
1191
  },
1111
- "signature": "const CLIAspect: Aspect",
1112
1192
  "name": "CLIAspect",
1113
- "type": {
1114
- "__schema": "TypeRefSchema",
1193
+ "exportNode": {
1194
+ "__schema": "VariableLikeSchema",
1115
1195
  "location": {
1116
1196
  "filePath": "cli.aspect.ts",
1117
1197
  "line": 5,
1118
1198
  "character": 14
1119
1199
  },
1120
- "name": "Aspect",
1121
- "componentId": {
1122
- "scope": "teambit.harmony",
1123
- "name": "harmony",
1124
- "version": "0.4.6"
1125
- }
1200
+ "signature": "const CLIAspect: Aspect",
1201
+ "name": "CLIAspect",
1202
+ "type": {
1203
+ "__schema": "TypeRefSchema",
1204
+ "location": {
1205
+ "filePath": "cli.aspect.ts",
1206
+ "line": 5,
1207
+ "character": 14
1208
+ },
1209
+ "name": "Aspect",
1210
+ "componentId": {
1211
+ "scope": "teambit.harmony",
1212
+ "name": "harmony",
1213
+ "version": "0.4.6"
1214
+ }
1215
+ },
1216
+ "isOptional": false,
1217
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/cli',\n dependencies: [],\n declareRuntime: MainRuntime,\n})"
1126
1218
  },
1127
- "isOptional": false,
1128
- "defaultValue": "Aspect.create({\n id: 'teambit.harmony/cli',\n dependencies: [],\n declareRuntime: MainRuntime,\n})"
1219
+ "alias": "default"
1129
1220
  },
1130
1221
  {
1131
- "__schema": "VariableLikeSchema",
1222
+ "__schema": "ExportSchema",
1132
1223
  "location": {
1133
- "filePath": "cli.aspect.ts",
1134
- "line": 3,
1135
- "character": 14
1224
+ "filePath": "index.ts",
1225
+ "line": 8,
1226
+ "character": 32
1136
1227
  },
1137
- "signature": "const MainRuntime: RuntimeDefinition",
1138
1228
  "name": "MainRuntime",
1139
- "type": {
1140
- "__schema": "TypeRefSchema",
1229
+ "exportNode": {
1230
+ "__schema": "VariableLikeSchema",
1141
1231
  "location": {
1142
1232
  "filePath": "cli.aspect.ts",
1143
1233
  "line": 3,
1144
1234
  "character": 14
1145
1235
  },
1146
- "name": "RuntimeDefinition",
1147
- "componentId": {
1148
- "scope": "teambit.harmony",
1149
- "name": "harmony",
1150
- "version": "0.4.6"
1151
- }
1152
- },
1153
- "isOptional": false,
1154
- "defaultValue": "new RuntimeDefinition('main')"
1236
+ "signature": "const MainRuntime: RuntimeDefinition",
1237
+ "name": "MainRuntime",
1238
+ "type": {
1239
+ "__schema": "TypeRefSchema",
1240
+ "location": {
1241
+ "filePath": "cli.aspect.ts",
1242
+ "line": 3,
1243
+ "character": 14
1244
+ },
1245
+ "name": "RuntimeDefinition",
1246
+ "componentId": {
1247
+ "scope": "teambit.harmony",
1248
+ "name": "harmony",
1249
+ "version": "0.4.6"
1250
+ }
1251
+ },
1252
+ "isOptional": false,
1253
+ "defaultValue": "new RuntimeDefinition('main')"
1254
+ }
1155
1255
  },
1156
1256
  {
1157
- "__schema": "VariableLikeSchema",
1257
+ "__schema": "ExportSchema",
1158
1258
  "location": {
1159
- "filePath": "cli.aspect.ts",
1160
- "line": 5,
1161
- "character": 14
1259
+ "filePath": "index.ts",
1260
+ "line": 8,
1261
+ "character": 45
1162
1262
  },
1163
- "signature": "const CLIAspect: Aspect",
1164
1263
  "name": "CLIAspect",
1165
- "type": {
1166
- "__schema": "TypeRefSchema",
1264
+ "exportNode": {
1265
+ "__schema": "VariableLikeSchema",
1167
1266
  "location": {
1168
1267
  "filePath": "cli.aspect.ts",
1169
1268
  "line": 5,
1170
1269
  "character": 14
1171
1270
  },
1172
- "name": "Aspect",
1173
- "componentId": {
1174
- "scope": "teambit.harmony",
1175
- "name": "harmony",
1176
- "version": "0.4.6"
1177
- }
1178
- },
1179
- "isOptional": false,
1180
- "defaultValue": "Aspect.create({\n id: 'teambit.harmony/cli',\n dependencies: [],\n declareRuntime: MainRuntime,\n})"
1271
+ "signature": "const CLIAspect: Aspect",
1272
+ "name": "CLIAspect",
1273
+ "type": {
1274
+ "__schema": "TypeRefSchema",
1275
+ "location": {
1276
+ "filePath": "cli.aspect.ts",
1277
+ "line": 5,
1278
+ "character": 14
1279
+ },
1280
+ "name": "Aspect",
1281
+ "componentId": {
1282
+ "scope": "teambit.harmony",
1283
+ "name": "harmony",
1284
+ "version": "0.4.6"
1285
+ }
1286
+ },
1287
+ "isOptional": false,
1288
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/cli',\n dependencies: [],\n declareRuntime: MainRuntime,\n})"
1289
+ }
1181
1290
  }
1182
1291
  ],
1183
1292
  "internals": []
@@ -1229,7 +1338,7 @@
1229
1338
  "line": 20,
1230
1339
  "character": 1
1231
1340
  },
1232
- "signature": "type OnStart = (hasWorkspace: boolean, currentCommand: string) => Promise<void>",
1341
+ "signature": "type OnStart = (hasWorkspace: boolean, currentCommand: string, commandObject?: Command) => Promise<void>",
1233
1342
  "name": "OnStart",
1234
1343
  "type": {
1235
1344
  "__schema": "FunctionLikeSchema",
@@ -1238,7 +1347,7 @@
1238
1347
  "line": 20,
1239
1348
  "character": 23
1240
1349
  },
1241
- "signature": "(hasWorkspace: boolean, currentCommand: string): Promise<void>",
1350
+ "signature": "(hasWorkspace: boolean, currentCommand: string, commandObject?: \u001b[2m(package: @teambit/legacy/dist/cli/command)\u001b[22m Command): Promise<void>",
1242
1351
  "name": "",
1243
1352
  "params": [
1244
1353
  {
@@ -1280,6 +1389,27 @@
1280
1389
  },
1281
1390
  "isOptional": false,
1282
1391
  "isSpread": false
1392
+ },
1393
+ {
1394
+ "__schema": "ParameterSchema",
1395
+ "location": {
1396
+ "filePath": "cli.main.runtime.ts",
1397
+ "line": 20,
1398
+ "character": 71
1399
+ },
1400
+ "name": "commandObject",
1401
+ "type": {
1402
+ "__schema": "TypeRefSchema",
1403
+ "location": {
1404
+ "filePath": "cli.main.runtime.ts",
1405
+ "line": 20,
1406
+ "character": 87
1407
+ },
1408
+ "name": "Command",
1409
+ "packageName": "@teambit/legacy/dist/cli/command"
1410
+ },
1411
+ "isOptional": true,
1412
+ "isSpread": false
1283
1413
  }
1284
1414
  ],
1285
1415
  "returnType": {
@@ -1287,7 +1417,7 @@
1287
1417
  "location": {
1288
1418
  "filePath": "cli.main.runtime.ts",
1289
1419
  "line": 20,
1290
- "character": 74
1420
+ "character": 99
1291
1421
  },
1292
1422
  "name": "Promise",
1293
1423
  "typeArgs": [
@@ -1296,7 +1426,7 @@
1296
1426
  "location": {
1297
1427
  "filePath": "cli.main.runtime.ts",
1298
1428
  "line": 20,
1299
- "character": 82
1429
+ "character": 107
1300
1430
  },
1301
1431
  "name": "void"
1302
1432
  }
@@ -2261,7 +2391,7 @@
2261
2391
  "__schema": "VariableLikeSchema",
2262
2392
  "location": {
2263
2393
  "filePath": "cli.main.runtime.ts",
2264
- "line": 162,
2394
+ "line": 166,
2265
2395
  "character": 3
2266
2396
  },
2267
2397
  "signature": "(property) CLIMain.dependencies: Aspect[]",
@@ -2270,7 +2400,7 @@
2270
2400
  "__schema": "InferenceTypeSchema",
2271
2401
  "location": {
2272
2402
  "filePath": "cli.main.runtime.ts",
2273
- "line": 162,
2403
+ "line": 166,
2274
2404
  "character": 3
2275
2405
  },
2276
2406
  "type": "Aspect[]"
@@ -2282,7 +2412,7 @@
2282
2412
  "__schema": "VariableLikeSchema",
2283
2413
  "location": {
2284
2414
  "filePath": "cli.main.runtime.ts",
2285
- "line": 163,
2415
+ "line": 167,
2286
2416
  "character": 3
2287
2417
  },
2288
2418
  "signature": "(property) CLIMain.runtime: RuntimeDefinition",
@@ -2291,7 +2421,7 @@
2291
2421
  "__schema": "InferenceTypeSchema",
2292
2422
  "location": {
2293
2423
  "filePath": "cli.main.runtime.ts",
2294
- "line": 163,
2424
+ "line": 167,
2295
2425
  "character": 3
2296
2426
  },
2297
2427
  "type": "RuntimeDefinition"
@@ -2303,7 +2433,7 @@
2303
2433
  "__schema": "VariableLikeSchema",
2304
2434
  "location": {
2305
2435
  "filePath": "cli.main.runtime.ts",
2306
- "line": 164,
2436
+ "line": 168,
2307
2437
  "character": 3
2308
2438
  },
2309
2439
  "signature": "(property) CLIMain.slots: (((registerFn: () => string) => SlotRegistry<CommandList>) | ((registerFn: () => string) => SlotRegistry<OnStart>) | ((registerFn: () => string) => SlotRegistry<...>))[]",
@@ -2312,7 +2442,7 @@
2312
2442
  "__schema": "InferenceTypeSchema",
2313
2443
  "location": {
2314
2444
  "filePath": "cli.main.runtime.ts",
2315
- "line": 164,
2445
+ "line": 168,
2316
2446
  "character": 3
2317
2447
  },
2318
2448
  "type": "(((registerFn: () => string) => SlotRegistry<CommandList>) | ((registerFn: () => string) => SlotRegistry<OnStart>) | ((registerFn: () => string) => SlotRegistry<...>))[]"
@@ -2324,7 +2454,7 @@
2324
2454
  "__schema": "FunctionLikeSchema",
2325
2455
  "location": {
2326
2456
  "filePath": "cli.main.runtime.ts",
2327
- "line": 171,
2457
+ "line": 175,
2328
2458
  "character": 3
2329
2459
  },
2330
2460
  "signature": "(method) CLIMain.provider([loggerMain]: [LoggerMain], config: any, [commandsSlot, onStartSlot, onCommandStartSlot, onBeforeExitSlot]: [\n CommandsSlot,\n OnStartSlot,\n OnCommandStartSlot,\n OnBeforeExitSlot\n]): Promise<CLIMain>",
@@ -2334,7 +2464,7 @@
2334
2464
  "__schema": "ParameterSchema",
2335
2465
  "location": {
2336
2466
  "filePath": "cli.main.runtime.ts",
2337
- "line": 172,
2467
+ "line": 176,
2338
2468
  "character": 5
2339
2469
  },
2340
2470
  "name": "[ loggerMain ]",
@@ -2342,7 +2472,7 @@
2342
2472
  "__schema": "TupleTypeSchema",
2343
2473
  "location": {
2344
2474
  "filePath": "cli.main.runtime.ts",
2345
- "line": 172,
2475
+ "line": 176,
2346
2476
  "character": 19
2347
2477
  },
2348
2478
  "elements": [
@@ -2350,7 +2480,7 @@
2350
2480
  "__schema": "TypeRefSchema",
2351
2481
  "location": {
2352
2482
  "filePath": "cli.main.runtime.ts",
2353
- "line": 172,
2483
+ "line": 176,
2354
2484
  "character": 20
2355
2485
  },
2356
2486
  "name": "LoggerMain",
@@ -2368,7 +2498,7 @@
2368
2498
  "__schema": "ParameterSchema",
2369
2499
  "location": {
2370
2500
  "filePath": "cli.main.runtime.ts",
2371
- "line": 173,
2501
+ "line": 177,
2372
2502
  "character": 5
2373
2503
  },
2374
2504
  "name": "config",
@@ -2376,7 +2506,7 @@
2376
2506
  "__schema": "InferenceTypeSchema",
2377
2507
  "location": {
2378
2508
  "filePath": "cli.main.runtime.ts",
2379
- "line": 173,
2509
+ "line": 177,
2380
2510
  "character": 5
2381
2511
  },
2382
2512
  "type": "any"
@@ -2388,7 +2518,7 @@
2388
2518
  "__schema": "ParameterSchema",
2389
2519
  "location": {
2390
2520
  "filePath": "cli.main.runtime.ts",
2391
- "line": 174,
2521
+ "line": 178,
2392
2522
  "character": 5
2393
2523
  },
2394
2524
  "name": "[ commandsSlot, onStartSlot, onCommandStartSlot, onBeforeExitSlot ]",
@@ -2396,7 +2526,7 @@
2396
2526
  "__schema": "TupleTypeSchema",
2397
2527
  "location": {
2398
2528
  "filePath": "cli.main.runtime.ts",
2399
- "line": 174,
2529
+ "line": 178,
2400
2530
  "character": 72
2401
2531
  },
2402
2532
  "elements": [
@@ -2404,7 +2534,7 @@
2404
2534
  "__schema": "TypeRefSchema",
2405
2535
  "location": {
2406
2536
  "filePath": "cli.main.runtime.ts",
2407
- "line": 175,
2537
+ "line": 179,
2408
2538
  "character": 7
2409
2539
  },
2410
2540
  "name": "CommandsSlot"
@@ -2413,7 +2543,7 @@
2413
2543
  "__schema": "TypeRefSchema",
2414
2544
  "location": {
2415
2545
  "filePath": "cli.main.runtime.ts",
2416
- "line": 176,
2546
+ "line": 180,
2417
2547
  "character": 7
2418
2548
  },
2419
2549
  "name": "OnStartSlot",
@@ -2423,7 +2553,7 @@
2423
2553
  "__schema": "TypeRefSchema",
2424
2554
  "location": {
2425
2555
  "filePath": "cli.main.runtime.ts",
2426
- "line": 177,
2556
+ "line": 181,
2427
2557
  "character": 7
2428
2558
  },
2429
2559
  "name": "OnCommandStartSlot",
@@ -2433,7 +2563,7 @@
2433
2563
  "__schema": "TypeRefSchema",
2434
2564
  "location": {
2435
2565
  "filePath": "cli.main.runtime.ts",
2436
- "line": 178,
2566
+ "line": 182,
2437
2567
  "character": 7
2438
2568
  },
2439
2569
  "name": "OnBeforeExitSlot",
@@ -2449,7 +2579,7 @@
2449
2579
  "__schema": "InferenceTypeSchema",
2450
2580
  "location": {
2451
2581
  "filePath": "cli.main.runtime.ts",
2452
- "line": 171,
2582
+ "line": 175,
2453
2583
  "character": 3
2454
2584
  },
2455
2585
  "type": "Promise<CLIMain>"
@@ -2469,7 +2599,7 @@
2469
2599
  "__schema": "UnImplementedSchema",
2470
2600
  "location": {
2471
2601
  "filePath": "cli.main.runtime.ts",
2472
- "line": 196,
2602
+ "line": 200,
2473
2603
  "character": 1
2474
2604
  },
2475
2605
  "name": "CLIAspect.addRuntime(CLIMain);",
@@ -2479,14 +2609,14 @@
2479
2609
  "__schema": "FunctionLikeSchema",
2480
2610
  "location": {
2481
2611
  "filePath": "cli.main.runtime.ts",
2482
- "line": 204,
2612
+ "line": 208,
2483
2613
  "character": 1
2484
2614
  },
2485
2615
  "doc": {
2486
2616
  "__schema": "DocSchema",
2487
2617
  "location": {
2488
2618
  "filePath": "cli.main.runtime.ts",
2489
- "line": 198,
2619
+ "line": 202,
2490
2620
  "character": 1
2491
2621
  },
2492
2622
  "raw": "/**\n * kind of a hack.\n * in the legacy, this is running at the beginning and it take care of issues when Bit files are missing,\n * such as \".bit\".\n * (to make this process better, you can easily remove it and run the e2e-tests. you'll see some failing)\n */",
@@ -2499,7 +2629,7 @@
2499
2629
  "__schema": "InferenceTypeSchema",
2500
2630
  "location": {
2501
2631
  "filePath": "cli.main.runtime.ts",
2502
- "line": 204,
2632
+ "line": 208,
2503
2633
  "character": 1
2504
2634
  },
2505
2635
  "type": "Promise<void>"
@@ -2512,7 +2642,7 @@
2512
2642
  "__schema": "FunctionLikeSchema",
2513
2643
  "location": {
2514
2644
  "filePath": "cli.main.runtime.ts",
2515
- "line": 212,
2645
+ "line": 216,
2516
2646
  "character": 1
2517
2647
  },
2518
2648
  "signature": "function isFullUrl(url: string): boolean",
@@ -2522,7 +2652,7 @@
2522
2652
  "__schema": "ParameterSchema",
2523
2653
  "location": {
2524
2654
  "filePath": "cli.main.runtime.ts",
2525
- "line": 212,
2655
+ "line": 216,
2526
2656
  "character": 20
2527
2657
  },
2528
2658
  "name": "url",
@@ -2530,7 +2660,7 @@
2530
2660
  "__schema": "KeywordTypeSchema",
2531
2661
  "location": {
2532
2662
  "filePath": "cli.main.runtime.ts",
2533
- "line": 212,
2663
+ "line": 216,
2534
2664
  "character": 25
2535
2665
  },
2536
2666
  "name": "string"
@@ -2543,7 +2673,7 @@
2543
2673
  "__schema": "TypeRefSchema",
2544
2674
  "location": {
2545
2675
  "filePath": "cli.main.runtime.ts",
2546
- "line": 212,
2676
+ "line": 216,
2547
2677
  "character": 1
2548
2678
  },
2549
2679
  "name": "isFullUrl",
@@ -2630,7 +2760,7 @@
2630
2760
  "componentId": {
2631
2761
  "scope": "teambit.harmony",
2632
2762
  "name": "cli",
2633
- "version": "0.0.862"
2763
+ "version": "0.0.864"
2634
2764
  },
2635
2765
  "taggedModuleExports": []
2636
2766
  }